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:
Guillaume Desmottes 2015-10-13 12:40:04 +02:00 committed by Tim-Philipp Müller
parent 5890c51bd3
commit 01e1046dbc

View file

@ -211,5 +211,7 @@ gst_gl_insert_debug_marker (GstGLContext * context, const gchar * format, ...)
gl->InsertEventMarker (len, string);
else if (gl->StringMarker)
gl->StringMarker (len, string);
g_free (string);
}
#endif