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:
parent
31e22acb4b
commit
b88d69dbfc
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user