summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Normand <philn@igalia.com>2020-09-11 12:51:56 +0100
committerTim-Philipp Müller <tim@centricular.com>2020-10-05 00:28:22 +0100
commit717c2d98329f6593a592d7b095123ef44887809f (patch)
tree655847c10628a38d25d0192bf45727566752cac5
parenta6de352b920ebf6c06140f136c7fc74a7f96d50b (diff)
downloadgstreamer-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.cpp8
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([&]() {