[Xfce4-commits] r29471 - xfconf/trunk/xfconf-query

Stephan Arts stephan at xfce.org
Sun Feb 8 00:18:54 CET 2009


Author: stephan
Date: 2009-02-07 23:18:54 +0000 (Sat, 07 Feb 2009)
New Revision: 29471

Modified:
   xfconf/trunk/xfconf-query/main.c
Log:
Fix my previous commit



Modified: xfconf/trunk/xfconf-query/main.c
===================================================================
--- xfconf/trunk/xfconf-query/main.c	2009-02-07 20:14:41 UTC (rev 29470)
+++ xfconf/trunk/xfconf-query/main.c	2009-02-07 23:18:54 UTC (rev 29471)
@@ -180,13 +180,13 @@
 
                     if(item_value)
                     {
-                        if(XFCONF_TYPE_G_VALUE_ARRAY != G_VALUE_TYPE(property_value))
+                        if(XFCONF_TYPE_G_VALUE_ARRAY != G_VALUE_TYPE(item_value))
                         {
                             str_val = _xfconf_string_from_gvalue(item_value);
                         }
                         else
                         {
-                            str_val = "<ARRAY>";
+                            str_val = g_strdup ("<ARRAY>");
                         }
                         if (i > 0)
                             _string = g_strconcat (string, ",", str_val, NULL);
@@ -194,8 +194,7 @@
                             _string = g_strconcat (string, str_val, NULL);
 
                         g_free (string);
-                        g_free(str_val);
-
+                        g_free(str_val); 
                         string = _string;
                     }
                 }




More information about the Xfce4-commits mailing list