From 4e108ee92a137520744e5518db89b04de9afd75e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 27 Jan 2012 19:00:03 +0100 Subject: [PATCH] gst-inspect: Fix memory leak --- tools/gst-inspect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index d7765941dd..fe5b98d8d4 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -1107,6 +1107,7 @@ 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; } @@ -1140,6 +1141,7 @@ print_all_uri_handlers (void) } gst_object_unref (element); + gst_object_unref (factory); } }