core/window: fix UAF in createQQuickWindow

This commit is contained in:
outfoxxed 2025-05-16 00:11:09 -07:00
parent db64642f17
commit fef840d2e8
Signed by: 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);
}