mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +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
4994f068d5
commit
b8adc98ddc
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[0] = 1.0f;
|
||||||
convert->priv->convert_info.chroma_sampling[1] = 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) {
|
if (convert->shader) {
|
||||||
gst_object_unref (convert->shader);
|
gst_object_unref (convert->shader);
|
||||||
convert->shader = NULL;
|
convert->shader = NULL;
|
||||||
|
|
Loading…
Reference in a new issue