mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
gl: fix leak in gst_gl_insert_debug_marker()
The string allocated by g_vasprintf() was leaked. Reproduced using the validate.file.compositor.simple.play_15s.synchronized validate scenario. https://bugzilla.gnome.org/show_bug.cgi?id=756492
This commit is contained in:
parent
5890c51bd3
commit
01e1046dbc
1 changed files with 2 additions and 0 deletions
|
@ -211,5 +211,7 @@ gst_gl_insert_debug_marker (GstGLContext * context, const gchar * format, ...)
|
||||||
gl->InsertEventMarker (len, string);
|
gl->InsertEventMarker (len, string);
|
||||||
else if (gl->StringMarker)
|
else if (gl->StringMarker)
|
||||||
gl->StringMarker (len, string);
|
gl->StringMarker (len, string);
|
||||||
|
|
||||||
|
g_free (string);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue