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
This commit is contained in:
Guillaume Desmottes 2015-05-04 17:58:38 +02:00 committed by Thiago Santos
parent a73631a29d
commit f90bb8140d

View 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);
}
}