mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
glshaderelement: free the vertex and fragment strings on finalize
Fixes a memory leak when using the vertex/fragment properties.
This commit is contained in:
parent
3f8edbee03
commit
89122224eb
1 changed files with 8 additions and 0 deletions
|
@ -164,6 +164,14 @@ gst_gl_filtershader_finalize (GObject * object)
|
|||
{
|
||||
GstGLFilterShader *filtershader = GST_GL_FILTERSHADER (object);
|
||||
|
||||
if (filtershader->vertex)
|
||||
g_free (filtershader->vertex);
|
||||
filtershader->vertex = NULL;
|
||||
|
||||
if (filtershader->fragment)
|
||||
g_free (filtershader->fragment);
|
||||
filtershader->fragment = NULL;
|
||||
|
||||
if (filtershader->uniforms)
|
||||
gst_structure_free (filtershader->uniforms);
|
||||
filtershader->uniforms = NULL;
|
||||
|
|
Loading…
Reference in a new issue