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:
Philippe Normand 2020-09-11 12:51:56 +01:00 committed by GStreamer Merge Bot
parent 8ef30a9ce5
commit c3659cd611

View file

@ -284,6 +284,14 @@ WPEView::~WPEView()
gst_egl_image_unref(egl.committed);
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([&]() {