diff --git a/ext/gl/gstglfiltershader.c b/ext/gl/gstglfiltershader.c index cadc3ff297..8d3bb7fc6d 100644 --- a/ext/gl/gstglfiltershader.c +++ b/ext/gl/gstglfiltershader.c @@ -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;