Commit 6ede81d1 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h
Browse files

gst-inspect: plug factory leak on error

parent df6de8fe
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment