1
0
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:
Cesare Tirabassi 2009-07-12 11:58:34 +02:00
parent df17a54301
commit e11015528e

View File

@ -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);
}