From 15251e4824dec32277f372a7cdab664877c67cd9 Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Tue, 17 Nov 2015 09:08:52 +0900 Subject: [PATCH] glimagesink: Fix structure memory leak https://bugzilla.gnome.org/show_bug.cgi?id=758205 --- ext/gl/gstglimagesink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index 92a8a327c9..cc2562da50 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -414,8 +414,10 @@ gst_glimage_sink_navigation_send_event (GstNavigation * navigation, GstStructure guint width, height; gdouble x, y; - if (!sink->context) + if (!sink->context) { + gst_structure_free (structure); return; + } window = gst_gl_context_get_window (sink->context); g_return_if_fail (GST_IS_GL_WINDOW (window));