core/window: fix UAF in createQQuickWindow
This commit is contained in:
parent
db64642f17
commit
fef840d2e8
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue