mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-24 00:54:18 +08:00
call mg_FreeMsgQueueForThisThread immediately in TerminateGUI()
This commit is contained in:
+2
-2
@@ -617,6 +617,8 @@ void GUIAPI TerminateGUI (int not_used)
|
||||
{
|
||||
mg_TerminateTimer (FALSE);
|
||||
|
||||
mg_FreeMsgQueueForThisThread (TRUE);
|
||||
|
||||
/* Since 5.0.0 */
|
||||
SendNotifyMessage (HWND_DESKTOP, MSG_ENDSESSION, 0, 0);
|
||||
pthread_join (__mg_dsk_msg_queue->th, NULL);
|
||||
@@ -655,8 +657,6 @@ void GUIAPI TerminateGUI (int not_used)
|
||||
miFreeArcCache ();
|
||||
#endif
|
||||
|
||||
mg_FreeMsgQueueForThisThread (TRUE);
|
||||
|
||||
deleteThreadInfoKey ();
|
||||
|
||||
mg_TerminateSliceAllocator();
|
||||
|
||||
Reference in New Issue
Block a user