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
This commit is contained in:
Vineeth TM 2015-11-12 16:36:03 +09:00 committed by Tim-Philipp Müller
parent 7b0125ab11
commit 7a75684566

View file

@ -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;