]> Dogcows Code - chaz/tint2/commitdiff
*fix* memleak
authorAndreas Fink <andreas.fink85@googlemail.com>
Wed, 11 Nov 2009 20:16:20 +0000 (20:16 +0000)
committerAndreas Fink <andreas.fink85@googlemail.com>
Wed, 11 Nov 2009 20:16:20 +0000 (20:16 +0000)
src/panel.c

index a84bd763fc5f9cd1c887507aa23838608b9f0793..8058190f9ca2a4ffb04788dc7be3d4dfee1f2585 100644 (file)
@@ -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;
This page took 0.023806 seconds and 4 git commands to generate.