diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2007-11-20 16:34:38 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2007-11-20 16:34:38 +0000 |
commit | 63472aba50eb6ef7dc20a6e57381b2e928bbb7ea (patch) | |
tree | 9a4614f0fbf68c7782fed88915e667f789ae8ab7 /gst/gstpreset.c | |
parent | adc10621058ad1068811b89ce43cc5b35f0a092f (diff) |
gst/gstpreset.c: Plug a leak and fix saving.
Original commit message from CVS:
* gst/gstpreset.c:
Plug a leak and fix saving.
Diffstat (limited to 'gst/gstpreset.c')
-rw-r--r-- | gst/gstpreset.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/gstpreset.c b/gst/gstpreset.c index 74afd6210..5a215242d 100644 --- a/gst/gstpreset.c +++ b/gst/gstpreset.c @@ -357,6 +357,7 @@ gst_preset_default_get_property_names (GstPreset * self) if ((properties = g_object_class_list_properties (G_OBJECT_CLASS (GST_ELEMENT_GET_CLASS (self)), &number_of_properties))) { + GST_INFO (" filtering properties: %u", number_of_properties); for (i = 0; i < number_of_properties; i++) { property = properties[i]; if (preset_skip_property (property) || @@ -373,6 +374,9 @@ gst_preset_default_get_property_names (GstPreset * self) names = g_list_prepend (names, property->name); } + g_free (properties); + } else { + GST_INFO ("no properties"); } return names; } @@ -653,10 +657,10 @@ gst_preset_default_save_preset (GstPreset * self, const gchar * name) g_hash_table_insert (data, (gpointer) property->name, (gpointer) str); str = NULL; } - g_list_free (properties); } /* @todo: handle childproxy properties as well */ GST_INFO (" saved"); + g_list_free (properties); } else { GST_INFO ("no properties"); } |