Fix potential null pointer access
Change-Id: I7516ce88b38609ab9851419566141ba93a59aed3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
1d7902a0ca
commit
6ef8eee8d4
@ -827,7 +827,7 @@ bool QWindowsContext::windowsProc(HWND hwnd, UINT message,
|
||||
// TODO: Release/regrab mouse if a popup has mouse grab.
|
||||
return false;
|
||||
case QtWindows::DestroyEvent:
|
||||
if (!platformWindow->testFlag(QWindowsWindow::WithinDestroy)) {
|
||||
if (platformWindow && !platformWindow->testFlag(QWindowsWindow::WithinDestroy)) {
|
||||
qWarning() << "External WM_DESTROY received for " << platformWindow->window()
|
||||
<< ", parent: " << platformWindow->window()->parent()
|
||||
<< ", transient parent: " << platformWindow->window()->transientParent();
|
||||
|
Loading…
Reference in New Issue
Block a user