From fa02b04292158130ef88326cd792445fa4ea4776 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 16 Sep 2013 19:07:18 +1000 Subject: [PATCH] [813/906] unref the pool on shutdown --- gst-libs/gst/gl/gstglmixer.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gst-libs/gst/gl/gstglmixer.c b/gst-libs/gst/gl/gstglmixer.c index 7b6f7d3..3a73a62 100644 --- a/gst-libs/gst/gl/gstglmixer.c +++ b/gst-libs/gst/gl/gstglmixer.c @@ -1010,6 +1010,8 @@ gst_gl_mixer_set_allocation (GstGLMixer * mix, GstQuery *oldquery; GstGLMixerPrivate *priv = mix->priv; + GST_DEBUG ("storing allocation query"); + GST_OBJECT_LOCK (mix); oldpool = priv->pool; priv->pool = pool; @@ -2171,6 +2173,16 @@ gst_gl_mixer_change_state (GstElement * element, GstStateChange transition) walk = walk->next; } + if (mix->priv->query) { + gst_query_unref (mix->priv->query); + mix->priv->query = NULL; + } + + if (mix->priv->pool) { + gst_object_unref (mix->priv->pool); + mix->priv->pool = NULL; + } + if (mix->display) { gst_object_unref (mix->display); mix->display = NULL; -- 2.7.4