mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-15 19:56: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:
|
case OBJ_apcupsd_lastxfer:
|
||||||
break;
|
break;
|
||||||
#endif /* APCUPSD */
|
#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);
|
free(obj);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user