From f90bb8140ddbf86e73771946d6c5968b56e0caef Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 4 May 2015 17:58:38 +0200 Subject: [PATCH] navigation: fix structure leak if subclass doesn't implement send_event() The send_event() implementation is supposed to consume @structure. https://bugzilla.gnome.org/show_bug.cgi?id=748903 --- gst-libs/gst/video/navigation.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/video/navigation.c b/gst-libs/gst/video/navigation.c index 3eb97dc..54bac85 100644 --- a/gst-libs/gst/video/navigation.c +++ b/gst-libs/gst/video/navigation.c @@ -115,6 +115,8 @@ gst_navigation_send_event (GstNavigation * navigation, GstStructure * structure) if (iface->send_event) { iface->send_event (navigation, structure); + } else { + gst_structure_free (structure); } } -- 2.7.4