Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2016-07-21 11:52:30 +0300
committerTim-Philipp Müller <tim@centricular.com>2016-11-11 16:40:51 +0300
commit8fb4c38ec9520dc9f9d02a0e5e5361fb70726281 (patch)
tree2fbb2606dbcddf25042a7a50ec6b92fdebf3d365
parent64cbff9cb7b4090cf83fce74067347aa241c9c14 (diff)
basetransform: fix pool leak when early returning in decide_allocation
https://bugzilla.gnome.org/show_bug.cgi?id=769023
-rw-r--r--libs/gst/base/gstbasetransform.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c
index de04a4817a..5b08cec431 100644
--- a/libs/gst/base/gstbasetransform.c
+++ b/libs/gst/base/gstbasetransform.c
@@ -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."));