mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
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:
parent
591401f9e8
commit
550ecade4d
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue