diff options
author | Philippe Normand <philn@igalia.com> | 2020-09-11 12:51:56 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-10-05 00:28:22 +0100 |
commit | 717c2d98329f6593a592d7b095123ef44887809f (patch) | |
tree | 655847c10628a38d25d0192bf45727566752cac5 | |
parent | a6de352b920ebf6c06140f136c7fc74a7f96d50b (diff) | |
download | gstreamer-plugins-bad-717c2d98329f6593a592d7b095123ef44887809f.tar.gz |
wpe: Plug SHM buffer leaks
Fixes #1409
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1647>
-rw-r--r-- | ext/wpe/WPEThreadedView.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/wpe/WPEThreadedView.cpp b/ext/wpe/WPEThreadedView.cpp index 797751738..de05e3c83 100644 --- a/ext/wpe/WPEThreadedView.cpp +++ b/ext/wpe/WPEThreadedView.cpp @@ -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([&]() { |