gl: fix leak in gst_gl_insert_debug_marker()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 13 Oct 2015 10:40:04 +0000 (12:40 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:09 +0000 (19:32 +0000)
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

gst-libs/gst/gl/gstgldebug.c

index 466389b..77bfcd8 100644 (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