From ce76c66f921eb9e748c2b569d1e2f3a5f74102e1 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 16 Apr 2015 14:21:16 +0200 Subject: [PATCH] glmixer: unref owned caps when finalizing the mixer Fix a caps leak with the validate.file.glvideomixer.simple.play_15s.synchronized scenario. https://bugzilla.gnome.org/show_bug.cgi?id=747915 Signed-off-by: Guillaume Desmottes --- ext/gl/gstglmixer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/gl/gstglmixer.c b/ext/gl/gstglmixer.c index 4e45124ed6..ab667a811b 100644 --- a/ext/gl/gstglmixer.c +++ b/ext/gl/gstglmixer.c @@ -404,6 +404,9 @@ gst_gl_mixer_finalize (GObject * object) GstGLMixer *mix = GST_GL_MIXER (object); GstGLMixerPrivate *priv = mix->priv; + if (mix->out_caps) + gst_caps_unref (mix->out_caps); + g_mutex_clear (&priv->gl_resource_lock); g_cond_clear (&priv->gl_resource_cond); G_OBJECT_CLASS (parent_class)->finalize (object);