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:
parent
a73631a29d
commit
f90bb8140d
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user