From bc73d35d03b00627d41616addf310e32af324597 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Mon, 20 Jan 2025 15:53:04 -0800 Subject: [PATCH] wayland/screencopy: fix ScreencopyContext leak in ScreencopyView Also caused an FD leak. --- src/wayland/screencopy/view.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wayland/screencopy/view.cpp b/src/wayland/screencopy/view.cpp index fe517352..fe744fd8 100644 --- a/src/wayland/screencopy/view.cpp +++ b/src/wayland/screencopy/view.cpp @@ -66,6 +66,8 @@ void ScreencopyView::createContext() { return; } + this->context->setParent(this); + QObject::connect( this->context, &ScreencopyContext::stopped,