diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2015-11-17 09:08:52 +0900 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-11-17 01:04:09 -0300 |
commit | 2ca86c6b0233c8187eec0e35461b2276eb2ce72d (patch) | |
tree | e70bf768f5599cfbe5d0ebba572dc2b777280703 | |
parent | 563e3c0458ac49a335f940e16bbd1cf8e1b03ef5 (diff) | |
download | gstreamer-plugins-bad-2ca86c6b0233c8187eec0e35461b2276eb2ce72d.tar.gz |
glimagesink: Fix structure memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=758205
-rw-r--r-- | ext/gl/gstglimagesink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index f629df7bd..49e59b872 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -405,8 +405,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_GL_IS_WINDOW (window)); |