From: Thierry Lorthiois Date: Sat, 22 Oct 2011 00:52:55 +0000 (+0000) Subject: Fix possible double free in launcher X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=f49c9bee1c435275576a25e1a99141bf553c8c3a;p=chaz%2Ftint2 Fix possible double free in launcher --- diff --git a/src/launcher/launcher.c b/src/launcher/launcher.c index 2dba4fd..b62c597 100644 --- a/src/launcher/launcher.c +++ b/src/launcher/launcher.c @@ -119,7 +119,8 @@ void cleanup_launcher() 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; } diff --git a/src/launcher/xsettings-client.c b/src/launcher/xsettings-client.c index e888dc9..a66c4b7 100644 --- a/src/launcher/xsettings-client.c +++ b/src/launcher/xsettings-client.c @@ -54,7 +54,7 @@ void xsettings_notify_cb (const char *name, XSettingsAction action, XSettingsSet 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);