Fix possible double free in launcher
git-svn-id: http://tint2.googlecode.com/svn/trunk@643 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
88c133a9a7
commit
e6882fcf36
2 changed files with 3 additions and 2 deletions
|
@ -119,7 +119,8 @@ void cleanup_launcher()
|
||||||
g_slist_free(launcher->list_apps);
|
g_slist_free(launcher->list_apps);
|
||||||
launcher->list_apps = NULL;
|
launcher->list_apps = NULL;
|
||||||
}
|
}
|
||||||
g_free(icon_theme_name);
|
free(icon_theme_name);
|
||||||
|
icon_theme_name = 0;
|
||||||
launcher_enabled = 0;
|
launcher_enabled = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ void xsettings_notify_cb (const char *name, XSettingsAction action, XSettingsSet
|
||||||
if (icon_theme_name) {
|
if (icon_theme_name) {
|
||||||
if (strcmp(icon_theme_name, setting->data.v_string) == 0)
|
if (strcmp(icon_theme_name, setting->data.v_string) == 0)
|
||||||
return;
|
return;
|
||||||
g_free(icon_theme_name);
|
free(icon_theme_name);
|
||||||
}
|
}
|
||||||
icon_theme_name = strdup(setting->data.v_string);
|
icon_theme_name = strdup(setting->data.v_string);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue