From e11015528e711c6f43ee761771c35fc545fe2e8f Mon Sep 17 00:00:00 2001 From: Cesare Tirabassi Date: Sun, 12 Jul 2009 11:58:34 +0200 Subject: [PATCH] free info.x11.desktop.name in free_text_objects() --- src/conky.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/conky.c b/src/conky.c index 4f84a3a9..58308437 100644 --- a/src/conky.c +++ b/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); }