From: Andreas Fink Date: Wed, 11 Nov 2009 20:16:20 +0000 (+0000) Subject: *fix* memleak X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=24ea7968bf901a2d4a96988e9f46d9209032c467;p=chaz%2Ftint2 *fix* memleak --- diff --git a/src/panel.c b/src/panel.c index a84bd76..8058190 100644 --- a/src/panel.c +++ b/src/panel.c @@ -238,7 +238,12 @@ void cleanup_panel() task_active = 0; task_drag = 0; - urgent_list = 0; + while (urgent_list) { + Task_urgent* t = urgent_list->data; + urgent_list = g_slist_remove(urgent_list, urgent_list->data); + free(t); + } + cleanup_taskbar(); int i;