Fix possible double free in launcher
git-svn-id: http://tint2.googlecode.com/svn/trunk@644 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
e6882fcf36
commit
10dfee6476
1 changed files with 2 additions and 7 deletions
|
@ -111,14 +111,9 @@ void cleanup_launcher()
|
||||||
Panel *panel = &panel1[i];
|
Panel *panel = &panel1[i];
|
||||||
Launcher *launcher = &panel->launcher;
|
Launcher *launcher = &panel->launcher;
|
||||||
cleanup_launcher_theme(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);
|
free(icon_theme_name);
|
||||||
icon_theme_name = 0;
|
icon_theme_name = 0;
|
||||||
launcher_enabled = 0;
|
launcher_enabled = 0;
|
||||||
|
|
Loading…
Reference in a new issue