[Xfce4-commits] r29278 - xfce4-settings/trunk/xfce4-settings-helper

Stephan Arts stephan at xfce.org
Mon Jan 19 20:35:15 CET 2009


Author: stephan
Date: 2009-01-19 19:35:15 +0000 (Mon, 19 Jan 2009)
New Revision: 29278

Modified:
   xfce4-settings/trunk/xfce4-settings-helper/workspaces.c
Log:
Fix possible segfault (Bug #4813)


Modified: xfce4-settings/trunk/xfce4-settings-helper/workspaces.c
===================================================================
--- xfce4-settings/trunk/xfce4-settings-helper/workspaces.c	2009-01-19 19:29:09 UTC (rev 29277)
+++ xfce4-settings/trunk/xfce4-settings-helper/workspaces.c	2009-01-19 19:35:15 UTC (rev 29278)
@@ -120,9 +120,10 @@
         screen = gdk_display_get_screen(display, s);
         xfce_workspaces_helper_set_names_prop(helper, screen, names);
 
-        g_strfreev(names);
     }
 
+    g_strfreev(names);
+
     g_signal_connect(G_OBJECT(helper->channel),
                      "property-changed::" WORKSPACE_NAMES_PROP,
                      G_CALLBACK(xfce_workspaces_helper_prop_changed), helper);




More information about the Xfce4-commits mailing list