]> Dogcows Code - chaz/tint2/commitdiff
Fix possible double free in launcher
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Sat, 22 Oct 2011 01:14:20 +0000 (01:14 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Sat, 22 Oct 2011 01:14:20 +0000 (01:14 +0000)
src/launcher/launcher.c

index b62c597e00c223fd275fdfadd4713c30570f4966..ab4ca29d67526e62192b9d40bf87a9b3627577dc 100644 (file)
@@ -111,14 +111,9 @@ void cleanup_launcher()
                Panel *panel = &panel1[i];
                Launcher *launcher = &panel->launcher;          
                cleanup_launcher_theme(launcher);
-               
-               GSList *l;
-               for (l = launcher->list_apps; l ; l = l->next) {
-                       free(l->data);
-               }
-               g_slist_free(launcher->list_apps);
-               launcher->list_apps = NULL;
        }
+       g_slist_free_full(panel_config.launcher.list_apps, free);
+       panel_config.launcher.list_apps = NULL;
        free(icon_theme_name);
        icon_theme_name = 0;
        launcher_enabled = 0;
This page took 0.019269 seconds and 4 git commands to generate.