From 19ec1690cca3f33dfb70af35184397c00cf45d9b Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Wed, 23 Oct 2024 23:45:03 +0200 Subject: [PATCH] Fix memory leak by destroying WlBuffer after usage --- src/frame/capturer/wayland.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frame/capturer/wayland.rs b/src/frame/capturer/wayland.rs index f79b00a..144a0fb 100644 --- a/src/frame/capturer/wayland.rs +++ b/src/frame/capturer/wayland.rs @@ -420,6 +420,8 @@ impl Dispatch for Capturer { ); frame.copy(&buffer); + buffer.destroy(); + state.pending_frame = Some(pending_frame); }