fix a bug in search_win_tree_bfs; send MSG_MANAGE_MSGTHREAD messages only in message.c

This commit is contained in:
Vincent Wei
2022-09-24 13:42:02 +08:00
parent d013822979
commit 9a124dec50
2 changed files with 20 additions and 9 deletions
+4
View File
@@ -194,6 +194,10 @@ void mg_FreeMsgQueueForThisThread (void)
_WRN_PRINTF ("there are still some windows not destroyed\n");
}
// unregister this message queue
SendMessage (HWND_DESKTOP, MSG_MANAGE_MSGTHREAD,
MSGTHREAD_SIGNOUT, (LPARAM)pMsgQueue);
mg_DestroyMsgQueue (pMsgQueue);
free (pMsgQueue);