gst-inspect: Fix memory leak

This commit is contained in:
Sebastian Dröge 2012-01-27 19:00:03 +01:00
parent a602d5b3e4
commit 4e108ee92a

View file

@ -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);
}
}