1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 20:44:56 +00:00

Implement fix from previous commit in another way to fix a leak that happens when conky closes

This commit is contained in:
Nikolas Garofil 2010-02-21 20:15:08 +01:00
parent 31e22acb4b
commit b88d69dbfc
2 changed files with 1 additions and 1 deletions

View File

@ -2419,6 +2419,7 @@ void clean_up(void *memtofree1, void* memtofree2)
free_desktop_info();
#endif /* BUILD_X11 */
free_text_objects(&global_root_object);
free_and_zero(tmpstring1);
free_and_zero(tmpstring2);
free_and_zero(text_buffer);

View File

@ -1863,7 +1863,6 @@ void free_text_objects(struct text_object *root)
}
if(obj->sub) {
free_text_objects(obj->sub);
free(obj->sub);
}
if(obj->special_data)
free(obj->special_data);