gst-inspect: plug factory leak on error

This commit is contained in:
Vincent Penquerc'h 2012-01-13 10:43:12 +00:00
parent df6de8fe0c
commit 6ede81d18e

View file

@ -1344,6 +1344,7 @@ print_element_info (GstElementFactory * factory, gboolean print_names)
element = gst_element_factory_create (factory, NULL); element = gst_element_factory_create (factory, NULL);
if (!element) { if (!element) {
gst_object_unref (factory);
g_print ("couldn't construct element for some reason\n"); g_print ("couldn't construct element for some reason\n");
return -1; return -1;
} }