mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-15 19:56:55 +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();
|
free_desktop_info();
|
||||||
#endif /* BUILD_X11 */
|
#endif /* BUILD_X11 */
|
||||||
|
|
||||||
|
free_text_objects(&global_root_object);
|
||||||
free_and_zero(tmpstring1);
|
free_and_zero(tmpstring1);
|
||||||
free_and_zero(tmpstring2);
|
free_and_zero(tmpstring2);
|
||||||
free_and_zero(text_buffer);
|
free_and_zero(text_buffer);
|
||||||
|
@ -1863,7 +1863,6 @@ void free_text_objects(struct text_object *root)
|
|||||||
}
|
}
|
||||||
if(obj->sub) {
|
if(obj->sub) {
|
||||||
free_text_objects(obj->sub);
|
free_text_objects(obj->sub);
|
||||||
free(obj->sub);
|
|
||||||
}
|
}
|
||||||
if(obj->special_data)
|
if(obj->special_data)
|
||||||
free(obj->special_data);
|
free(obj->special_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user