From b1bc2af76636dc6db7577232ad68ae08ef007db1 Mon Sep 17 00:00:00 2001 From: Vineeth T M Date: Mon, 18 May 2015 16:16:10 +0900 Subject: [PATCH] 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 --- sys/xvimage/xvimagesink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index ad2d773..7b47e42 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; } -- 2.7.4