From 550ecade4ddff1da21743116c0eb26bbc843e1d6 Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Thu, 12 Nov 2015 16:36:03 +0900 Subject: [PATCH] glslstage: Fix vertex_sources memory leak vertex_sources is being allocated but not freed resulting in leak https://bugzilla.gnome.org/show_bug.cgi?id=757974 --- gst-libs/gst/gl/gstglslstage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/gl/gstglslstage.c b/gst-libs/gst/gl/gstglslstage.c index 1eb99ce..05fde10 100644 --- a/gst-libs/gst/gl/gstglslstage.c +++ b/gst-libs/gst/gl/gstglslstage.c @@ -452,6 +452,7 @@ _compile_shader (GstGLContext * context, struct compile *data) gl->ShaderSource (priv->handle, n_vertex_sources, (const gchar **) vertex_sources, NULL); gl->CompileShader (priv->handle); + g_free (vertex_sources); /* FIXME: supported threaded GLSL compilers and don't destroy compilation * performance by getting the compilation result directly after compilation */ status = GL_FALSE; -- 2.7.4