From: Edward Hervey Date: Fri, 14 Oct 2011 07:27:38 +0000 (+0200) Subject: gst-inspect: Don't leak plugin feature list X-Git-Tag: RELEASE-0.11.2~617 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08ccde744e8d666ac42e7faff5f94ff8612f01eb;p=platform%2Fupstream%2Fgstreamer.git gst-inspect: Don't leak plugin feature list --- diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index bf947ed..9f54961 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -1236,14 +1236,14 @@ print_plugin_info (GstPlugin * plugin) static void print_plugin_features (GstPlugin * plugin) { - GList *features; + GList *features, *origlist; gint num_features = 0; gint num_elements = 0; gint num_typefinders = 0; gint num_indexes = 0; gint num_other = 0; - features = + origlist = features = gst_registry_get_feature_list_by_plugin (gst_registry_get_default (), plugin->desc.name); @@ -1292,6 +1292,9 @@ print_plugin_features (GstPlugin * plugin) num_features++; features = g_list_next (features); } + + gst_plugin_feature_list_free (origlist); + n_print ("\n"); n_print (" %d features:\n", num_features); if (num_elements > 0)