From 5b30a8e9b23578ea5c7a327d6bb8307f9b7de63f Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 13 Oct 2015 12:40:04 +0200 Subject: [PATCH] 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 --- gst-libs/gst/gl/gstgldebug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/gl/gstgldebug.c b/gst-libs/gst/gl/gstgldebug.c index 466389ba1f..77bfcd81ad 100644 --- a/gst-libs/gst/gl/gstgldebug.c +++ b/gst-libs/gst/gl/gstgldebug.c @@ -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