mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
free info.x11.desktop.name in free_text_objects()
This commit is contained in:
parent
df17a54301
commit
e11015528e
10
src/conky.c
10
src/conky.c
@ -1082,6 +1082,16 @@ static void free_text_objects(struct text_object *root, int internal)
|
||||
case OBJ_apcupsd_lastxfer:
|
||||
break;
|
||||
#endif /* APCUPSD */
|
||||
#ifdef X11
|
||||
case OBJ_desktop:
|
||||
case OBJ_desktop_number:
|
||||
case OBJ_desktop_name:
|
||||
if(info.x11.desktop.name) {
|
||||
free(info.x11.desktop.name);
|
||||
info.x11.desktop.name = NULL;
|
||||
}
|
||||
break;
|
||||
#endif /* X11 */
|
||||
}
|
||||
free(obj);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user