From 18263677f188f648086e840141a64ec208a8002a Mon Sep 17 00:00:00 2001 From: Thierry Lorthiois Date: Sat, 22 Oct 2011 01:14:20 +0000 Subject: [PATCH] Fix possible double free in launcher --- src/launcher/launcher.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/launcher/launcher.c b/src/launcher/launcher.c index b62c597..ab4ca29 100644 --- a/src/launcher/launcher.c +++ b/src/launcher/launcher.c @@ -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; -- 2.45.2