core/window: fix UAF in createQQuickWindow

This commit is contained in:
outfoxxed 2025-05-17 04:01:45 -07:00
parent 4d74851fd0
commit 5c1d600e84
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -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);
}