mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
basetransform: fix pool leak when early returning in decide_allocation
https://bugzilla.gnome.org/show_bug.cgi?id=769023
This commit is contained in:
parent
64cbff9cb7
commit
8fb4c38ec9
1 changed files with 3 additions and 0 deletions
|
@ -960,6 +960,9 @@ gst_base_transform_default_decide_allocation (GstBaseTransform * trans,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
config_failed:
|
config_failed:
|
||||||
|
if (pool)
|
||||||
|
gst_object_unref (pool);
|
||||||
|
|
||||||
GST_ELEMENT_ERROR (trans, RESOURCE, SETTINGS,
|
GST_ELEMENT_ERROR (trans, RESOURCE, SETTINGS,
|
||||||
("Failed to configure the buffer pool"),
|
("Failed to configure the buffer pool"),
|
||||||
("Configuration is most likely invalid, please report this issue."));
|
("Configuration is most likely invalid, please report this issue."));
|
||||||
|
|
Loading…
Reference in a new issue