browser(webkit): destroy main window after the view (#2233)

This commit is contained in:
Pavel Feldman 2020-05-13 22:54:43 -07:00 committed by GitHub
parent 76e106605f
commit 62ae079035
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
1229
1230

View file

@ -325,7 +325,7 @@ LRESULT CALLBACK MainWindow::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPA
}
}
break;
case WM_DESTROY:
case WM_NCDESTROY:
SetWindowLongPtr(hWnd, GWLP_USERDATA, 0);
delete thisWindow;
if (s_noStartupWindow || s_numInstances > 0)