mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
glcolorconvert: Fix frag_prog and frag_body memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=757974
This commit is contained in:
parent
b30deff7e1
commit
1f245c3d2e
1 changed files with 8 additions and 0 deletions
|
@ -529,6 +529,14 @@ gst_gl_color_convert_reset (GstGLColorConvert * convert)
|
|||
convert->priv->convert_info.chroma_sampling[0] = 1.0f;
|
||||
convert->priv->convert_info.chroma_sampling[1] = 1.0f;
|
||||
|
||||
if (convert->priv->convert_info.frag_prog) {
|
||||
g_free (convert->priv->convert_info.frag_prog);
|
||||
convert->priv->convert_info.frag_prog = NULL;
|
||||
}
|
||||
if (convert->priv->convert_info.frag_body) {
|
||||
g_free (convert->priv->convert_info.frag_body);
|
||||
convert->priv->convert_info.frag_body = NULL;
|
||||
}
|
||||
if (convert->shader) {
|
||||
gst_object_unref (convert->shader);
|
||||
convert->shader = NULL;
|
||||
|
|
Loading…
Reference in a new issue