1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-27 00:58:36 +00:00

Bugfix: make sure $else works correct and without memleaks

This commit is contained in:
Nikolas Garofil 2009-11-16 08:39:05 +01:00
parent 5eebf1c516
commit f3e250df55
2 changed files with 2 additions and 2 deletions

View File

@ -1167,7 +1167,7 @@ void generate_text_internal(char *p, int p_max_size,
* Do Ninja jump here: without leaving traces.
* This is to prevent us from stale jumped flags.
*/
obj = obj->sub;
obj = obj->special_data;
continue;
}
OBJ(endif) {

View File

@ -1781,7 +1781,7 @@ void free_text_objects(struct text_object *root, int internal)
#ifdef XMMS2
if(obj->type == OBJ_if_xmms2_connected) type_is_if = 1;
#endif
if(obj->special_data && type_is_if == 0) free(obj->special_data);
if(obj->special_data && obj->type != OBJ_else && type_is_if == 0) free(obj->special_data);
free(obj);
}
#undef data