mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
wpe: Plug SHM buffer leaks
Fixes #1409 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1568>
This commit is contained in:
parent
8ef30a9ce5
commit
c3659cd611
1 changed files with 8 additions and 0 deletions
|
@ -284,6 +284,14 @@ WPEView::~WPEView()
|
||||||
gst_egl_image_unref(egl.committed);
|
gst_egl_image_unref(egl.committed);
|
||||||
egl.committed = nullptr;
|
egl.committed = nullptr;
|
||||||
}
|
}
|
||||||
|
if (shm.pending) {
|
||||||
|
gst_buffer_unref(shm.pending);
|
||||||
|
shm.pending = nullptr;
|
||||||
|
}
|
||||||
|
if (shm.committed) {
|
||||||
|
gst_buffer_unref(shm.committed);
|
||||||
|
shm.committed = nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
WPEContextThread::singleton().dispatch([&]() {
|
WPEContextThread::singleton().dispatch([&]() {
|
||||||
|
|
Loading…
Reference in a new issue