[0.11] gstreamer: gst-inspect: Fix memory leak
Sebastian Dröge
slomo at kemper.freedesktop.org
Fri Jan 27 10:00:18 PST 2012
Module: gstreamer
Branch: 0.11
Commit: 4e108ee92a137520744e5518db89b04de9afd75e
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=4e108ee92a137520744e5518db89b04de9afd75e
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Fri Jan 27 19:00:03 2012 +0100
gst-inspect: Fix memory leak
---
tools/gst-inspect.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index d776594..fe5b98d 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);
}
}
More information about the gstreamer-commits
mailing list