[0.11] gstreamer: gst-inspect: plug factory leak on error

Sebastian Dröge slomo at kemper.freedesktop.org
Wed Jan 25 02:43:33 PST 2012


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

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Fri Jan 13 10:43:12 2012 +0000

gst-inspect: plug factory leak on error

---

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

diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index 165ad3f..75e5181 100644
--- a/tools/gst-inspect.c
+++ b/tools/gst-inspect.c
@@ -1344,6 +1344,7 @@ print_element_info (GstElementFactory * factory, gboolean print_names)
 
   element = gst_element_factory_create (factory, NULL);
   if (!element) {
+    gst_object_unref (factory);
     g_print ("couldn't construct element for some reason\n");
     return -1;
   }



More information about the gstreamer-commits mailing list