navigation: fix structure leak if subclass doesn't implement send_event()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 4 May 2015 15:58:38 +0000 (17:58 +0200)
committerThiago Santos <thiagoss@osg.samsung.com>
Tue, 5 May 2015 16:54:08 +0000 (13:54 -0300)
The send_event() implementation is supposed to consume @structure.

https://bugzilla.gnome.org/show_bug.cgi?id=748903

gst-libs/gst/video/navigation.c

index 3eb97dc..54bac85 100644 (file)
@@ -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);
   }
 }