From 453091137e40cdbb313ecdd6c2db59d3e53dc4df Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 24 May 2011 09:45:18 +0200 Subject: [PATCH] x11: free bufferpool whe activation fails --- sys/ximage/ximagesink.c | 1 + sys/xvimage/xvimagesink.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 51205dc..1ef50ee 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -1185,6 +1185,7 @@ activate_failed: { GST_ERROR_OBJECT (ximagesink, "failed to activate bufferpool."); g_mutex_unlock (ximagesink->flow_lock); + gst_object_unref (newpool); return FALSE; } } diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 333cd52..33f54ea 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -1745,6 +1745,7 @@ activate_failed: { GST_ERROR_OBJECT (xvimagesink, "failed to activate bufferpool."); g_mutex_unlock (xvimagesink->flow_lock); + gst_object_unref (newpool); return FALSE; } } -- 2.7.4