[0.11] gstreamer: gst-inspect: Don't unref plugin features multiple times

Sebastian Dröge slomo at kemper.freedesktop.org
Fri Jan 27 09:54:29 PST 2012


Module: gstreamer
Branch: 0.11
Commit: a602d5b3e4160494242b52cf34ad7f42337d75ac
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=a602d5b3e4160494242b52cf34ad7f42337d75ac

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Fri Jan 27 18:53:45 2012 +0100

gst-inspect: Don't unref plugin features multiple times

gst_plugin_feature_list_free() unrefs them too.

---

 tools/gst-inspect.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index 02ef41b..d776594 100644
--- a/tools/gst-inspect.c
+++ b/tools/gst-inspect.c
@@ -1107,7 +1107,6 @@ print_all_uri_handlers (void)
         if (!element) {
           g_print ("couldn't construct element for %s for some reason\n",
               GST_OBJECT_NAME (factory));
-          gst_object_unref (factory);
           continue;
         }
 
@@ -1141,7 +1140,6 @@ print_all_uri_handlers (void)
         }
 
         gst_object_unref (element);
-        gst_object_unref (factory);
       }
     }
 
@@ -1245,7 +1243,6 @@ print_plugin_features (GstPlugin * plugin)
       num_other++;
     }
     num_features++;
-    gst_object_unref (feature);
     features = g_list_next (features);
   }
 



More information about the gstreamer-commits mailing list