mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
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
This commit is contained in:
parent
9cf48640d9
commit
9499a65646
@ -1,3 +1,7 @@
|
|||||||
|
2008-02-12 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* tests/prop-editor.c: Fix a memory leak (#515039, Christian Persch)
|
||||||
|
|
||||||
2008-02-12 Matthias Clasen <mclasen@redhat.com>
|
2008-02-12 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* tests/testmerge.c: Fix a memory leak (#515038, Christian Persch)
|
* tests/testmerge.c: Fix a memory leak (#515038, Christian Persch)
|
||||||
|
@ -919,8 +919,10 @@ properties_from_type (GObject *object,
|
|||||||
specs = g_object_class_list_properties (class, &n_specs);
|
specs = g_object_class_list_properties (class, &n_specs);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (n_specs == 0)
|
if (n_specs == 0) {
|
||||||
|
g_free (specs);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
table = gtk_table_new (n_specs, 2, FALSE);
|
table = gtk_table_new (n_specs, 2, FALSE);
|
||||||
gtk_table_set_col_spacing (GTK_TABLE (table), 0, 10);
|
gtk_table_set_col_spacing (GTK_TABLE (table), 0, 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user