mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 18:39:54 +00:00
wpe: Plug event leak
Handled events don't go through the default pad event handler, so they need to be unreffed in this case. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1568>
This commit is contained in:
parent
6fc7455881
commit
2e8927ce93
1 changed files with 2 additions and 0 deletions
|
@ -585,6 +585,8 @@ gst_wpe_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
|
||||
if (!ret) {
|
||||
ret = gst_pad_event_default (pad, parent, event);
|
||||
} else {
|
||||
gst_event_unref (event);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue