mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 22:46:35 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -115,6 +115,8 @@ gst_navigation_send_event (GstNavigation * navigation, GstStructure * structure)
|
||||||
|
|
||||||
if (iface->send_event) {
|
if (iface->send_event) {
|
||||||
iface->send_event (navigation, structure);
|
iface->send_event (navigation, structure);
|
||||||
|
} else {
|
||||||
|
gst_structure_free (structure);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue