basetransform: fix pool leak when early returning in decide_allocation

https://bugzilla.gnome.org/show_bug.cgi?id=769023
This commit is contained in:
Guillaume Desmottes 2016-07-21 10:52:30 +02:00 committed by Tim-Philipp Müller
parent 24a09d1b6d
commit fcb938caae

View file

@ -960,6 +960,9 @@ gst_base_transform_default_decide_allocation (GstBaseTransform * trans,
return TRUE;
config_failed:
if (pool)
gst_object_unref (pool);
GST_ELEMENT_ERROR (trans, RESOURCE, SETTINGS,
("Failed to configure the buffer pool"),
("Configuration is most likely invalid, please report this issue."));