summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorVineeth T M <vineeth.tm@samsung.com>2015-05-18 16:16:10 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-05-18 10:40:37 +0300
commitb1bc2af76636dc6db7577232ad68ae08ef007db1 (patch)
tree5824caa531ac4a129279330e98b6e934b198b69b /sys
parent1b755eb272f4fd3cd9d5d31cc61927520fe033ff (diff)
downloadgst-plugins-base-b1bc2af76636dc6db7577232ad68ae08ef007db1.tar.gz
gst-plugins-base-b1bc2af76636dc6db7577232ad68ae08ef007db1.tar.xz
xvimagesink: fix pool leak
During set caps when config fails, the referenced newpool is not unref ed. https://bugzilla.gnome.org/show_bug.cgi?id=749530
Diffstat (limited to 'sys')
-rw-r--r--sys/xvimage/xvimagesink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c
index ad2d77325..7b47e42a3 100644
--- a/sys/xvimage/xvimagesink.c
+++ b/sys/xvimage/xvimagesink.c
@@ -828,6 +828,7 @@ no_display_size:
config_failed:
{
GST_ERROR_OBJECT (xvimagesink, "failed to set config.");
+ gst_object_unref (newpool);
g_mutex_unlock (&xvimagesink->flow_lock);
return FALSE;
}