gegl r2795 - in trunk: . tools



Author: neo
Date: Sun Nov 23 22:53:20 2008
New Revision: 2795
URL: http://svn.gnome.org/viewvc/gegl?rev=2795&view=rev

Log:
2008-11-23  Sven Neumann  <sven gimp org>

	* tools/operation_reference.c (list_properties): don't unref a
	NULL object.



Modified:
   trunk/ChangeLog
   trunk/tools/operation_reference.c

Modified: trunk/tools/operation_reference.c
==============================================================================
--- trunk/tools/operation_reference.c	(original)
+++ trunk/tools/operation_reference.c	Sun Nov 23 22:53:20 2008
@@ -172,13 +172,15 @@
               if (color)
                 {
                   gchar *string;
+
                   g_object_get (color, "string", &string, NULL);
                   g_print ("%s", string);
                   g_free (string);
+
+                  g_object_unref (color);
                 }
-              g_object_unref (color);
             }
-          else 
+          else
             {
               g_print ("\n");
             }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]