From: Vineeth T M Date: Mon, 18 May 2015 07:16:10 +0000 (+0900) Subject: xvimagesink: fix pool leak X-Git-Tag: 1.19.3~511^2~3635 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1bc2af76636dc6db7577232ad68ae08ef007db1;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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; }