From: Guillaume Desmottes Date: Thu, 19 May 2016 13:55:31 +0000 (+0300) Subject: glmosaic: fix shader leak X-Git-Tag: 1.19.3~511^2~1294^2~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=396932f412f01de86351d4f6deb1f0c9b2f84c68;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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);