all repos — tint2 @ 10dfee6476b6036fdc8ee87e98b9f1f0b22e7c85

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Fix possible double free in launcher

git-svn-id: http://tint2.googlecode.com/svn/trunk@644 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
commit

10dfee6476b6036fdc8ee87e98b9f1f0b22e7c85

parent

e6882fcf36d2669c858f2c1801b657c768ed9b14

1 files changed, 2 insertions(+), 7 deletions(-)

jump to
M src/launcher/launcher.csrc/launcher/launcher.c

@@ -111,14 +111,9 @@ for (i = 0 ; i < nb_panel ; i++) {

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;