diff options
author | Samuel Nevala <samuel.nevala@intopalo.com> | 2015-10-15 13:16:43 +0300 |
---|---|---|
committer | Samuel Nevala <samuel.nevala@intopalo.com> | 2015-10-16 04:34:32 +0000 |
commit | 49640d417f8e7a975a44b3e0d197112ee8b76b7f (patch) | |
tree | 22d2257e14a2bf4bf68e213d6163ae21bdbdb01f /src/winmain | |
parent | 09d9af59f057b2d5d3fa196b1fd8040a4be930e4 (diff) |
winrt: Wait for main thread to exit before exit.
This will allow application main to go out of scope and free objects
allocated there.
Change-Id: I7b7199ecf67afe578bac043f16b064c9daaae04a
Task-Id: QTBUG-48760
Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
Diffstat (limited to 'src/winmain')
-rw-r--r-- | src/winmain/qtmain_winrt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/winmain/qtmain_winrt.cpp b/src/winmain/qtmain_winrt.cpp index b7125eec59..3553d966d8 100644 --- a/src/winmain/qtmain_winrt.cpp +++ b/src/winmain/qtmain_winrt.cpp @@ -169,6 +169,7 @@ public: }).Get()); Q_ASSERT_SUCCEEDED(hr); + WaitForSingleObjectEx(mainThread, INFINITE, FALSE); DWORD exitCode; GetExitCodeThread(mainThread, &exitCode); return exitCode; |