]> Dogcows Code - chaz/tint2/commitdiff
Fix possible double free in launcher
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Sat, 22 Oct 2011 00:52:55 +0000 (00:52 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Sat, 22 Oct 2011 00:52:55 +0000 (00:52 +0000)
src/launcher/launcher.c
src/launcher/xsettings-client.c

index 2dba4fda40be6a34433dfdc042e90dccb4a91f03..b62c597e00c223fd275fdfadd4713c30570f4966 100644 (file)
@@ -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;
 }
 
index e888dc989faaa8a1b5ec9d67b14e4fa808462adc..a66c4b704b82d3743e08435f0910b8ddff531ec8 100644 (file)
@@ -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);
                        
This page took 0.030699 seconds and 4 git commands to generate.