From 396932f412f01de86351d4f6deb1f0c9b2f84c68 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 19 May 2016 16:55:31 +0300 Subject: [PATCH] glmosaic: fix shader leak gst_gl_mosaic_init_shader() is called twice with test_glmosaic so the first shader was leaked. https://bugzilla.gnome.org/show_bug.cgi?id=766661 --- ext/gl/gstglmosaic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/gl/gstglmosaic.c b/ext/gl/gstglmosaic.c index 377f718..bcf3833 100644 --- a/ext/gl/gstglmosaic.c +++ b/ext/gl/gstglmosaic.c @@ -187,6 +187,7 @@ gst_gl_mosaic_init_shader (GstGLMixer * mixer, GstCaps * outcaps) { GstGLMosaic *mosaic = GST_GL_MOSAIC (mixer); + g_clear_object (&mosaic->shader); //blocking call, wait the opengl thread has compiled the shader return gst_gl_context_gen_shader (GST_GL_BASE_MIXER (mixer)->context, mosaic_v_src, mosaic_f_src, &mosaic->shader); -- 2.7.4