summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2008-02-12 15:38:47 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-02-12 15:38:47 +0000
commit9499a656467ee0645c3f53a42da76c3599989fe7 (patch)
tree3abd8ea5cdaddb2235c677d3ce560bfb5502f4df /tests
parent9cf48640d97f6b721296fce933891d779ce1bfce (diff)
downloadgtk+-9499a656467ee0645c3f53a42da76c3599989fe7.tar.gz
Fix a memory leak (#515039, Christian Persch)
2008-02-12 Matthias Clasen <mclasen@redhat.com> * tests/prop-editor.c: Fix a memory leak (#515039, Christian Persch) svn path=/trunk/; revision=19526
Diffstat (limited to 'tests')
-rw-r--r--tests/prop-editor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/prop-editor.c b/tests/prop-editor.c
index 22f6ad2fd6..442b162e9b 100644
--- a/tests/prop-editor.c
+++ b/tests/prop-editor.c
@@ -919,8 +919,10 @@ properties_from_type (GObject *object,
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);