From 5c1d600e848378d8dfb7dad8147e384c997f2a2a Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sat, 17 May 2025 04:01:45 -0700 Subject: [PATCH] core/window: fix UAF in createQQuickWindow --- src/window/proxywindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window/proxywindow.cpp b/src/window/proxywindow.cpp index f9633f0e..1a2a97ea 100644 --- a/src/window/proxywindow.cpp +++ b/src/window/proxywindow.cpp @@ -134,6 +134,7 @@ void ProxyWindowBase::ensureQWindow() { if (useOldWindow) return; delete this->window; + this->window = nullptr; // createQQuickWindow may indirectly reference this->window this->window = this->createQQuickWindow(); this->window->setFormat(format); }