gtk+ r19526 - in trunk: . tests



Author: matthiasc
Date: Tue Feb 12 15:38:47 2008
New Revision: 19526
URL: http://svn.gnome.org/viewvc/gtk+?rev=19526&view=rev

Log:
2008-02-12  Matthias Clasen  <mclasen redhat com>

        * tests/prop-editor.c: Fix a memory leak (#515039, Christian Persch)




Modified:
   trunk/ChangeLog
   trunk/tests/prop-editor.c

Modified: trunk/tests/prop-editor.c
==============================================================================
--- trunk/tests/prop-editor.c	(original)
+++ trunk/tests/prop-editor.c	Tue Feb 12 15:38:47 2008
@@ -919,8 +919,10 @@
       specs = g_object_class_list_properties (class, &n_specs);
     }
         
-  if (n_specs == 0)
+  if (n_specs == 0) {
+    g_free (specs);
     return NULL;
+  }
   
   table = gtk_table_new (n_specs, 2, FALSE);
   gtk_table_set_col_spacing (GTK_TABLE (table), 0, 10);



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