From 24ea7968bf901a2d4a96988e9f46d9209032c467 Mon Sep 17 00:00:00 2001 From: Andreas Fink Date: Wed, 11 Nov 2009 20:16:20 +0000 Subject: [PATCH] *fix* memleak --- src/panel.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- 2.45.2