diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index 714e57f4bcb..1b4a3cb06f3 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -12275,6 +12275,7 @@ static DWORD CALLBACK wait_idle_thread( void *arg ) hwnd = CreateWindowExA(0, "TestClass", NULL, WS_POPUP, 0, 0, 10, 10, 0, 0, 0, NULL); while (GetMessage( &msg, 0, 0, 0 )) DispatchMessage( &msg ); + DestroyWindow(hwnd); return 0; }