mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gst-inspect: plug factory leak on error
This commit is contained in:
parent
df6de8fe0c
commit
6ede81d18e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue