summaryrefslogtreecommitdiff
path: root/tools/gst-inspect.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gst-inspect.c')
-rw-r--r--tools/gst-inspect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index 3a8adf5968..82042d1cb7 100644
--- a/tools/gst-inspect.c
+++ b/tools/gst-inspect.c
@@ -1302,6 +1302,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;
}