all repos — tint2 @ e6882fcf36d2669c858f2c1801b657c768ed9b14

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@643 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
commit

e6882fcf36d2669c858f2c1801b657c768ed9b14

parent

88c133a9a778fa41806947eba1c565e74c88148c

2 files changed, 3 insertions(+), 2 deletions(-)

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

@@ -119,7 +119,8 @@ }

g_slist_free(launcher->list_apps); launcher->list_apps = NULL; } - g_free(icon_theme_name); + free(icon_theme_name); + icon_theme_name = 0; launcher_enabled = 0; }
M src/launcher/xsettings-client.csrc/launcher/xsettings-client.c

@@ -54,7 +54,7 @@ if (!strcmp(name, "Net/IconThemeName") && setting->type == XSETTINGS_TYPE_STRING) {

if (icon_theme_name) { if (strcmp(icon_theme_name, setting->data.v_string) == 0) return; - g_free(icon_theme_name); + free(icon_theme_name); } icon_theme_name = strdup(setting->data.v_string);