LCL: TApplication.Destroy: free crit section later

git-svn-id: trunk@31145 -
This commit is contained in:
mattias 2011-06-09 11:55:15 +00:00
parent 7e5a735d6a
commit 6c9cc59de9

View File

@ -144,7 +144,6 @@ begin
ExitProc:=FOldExitProc;
ProcessAsyncCallQueue;
System.DoneCriticalSection(FAsyncCall.CritSec);
if OnMenuPopupHandler=@MenuPopupHandler then
OnMenuPopupHandler:=nil;
@ -168,6 +167,7 @@ begin
Include(FFlags,AppDoNotCallAsyncQueue);
ProcessAsyncCallQueue;
System.DoneCriticalSection(FAsyncCall.CritSec);
// restore exception handling
CaptureExceptions:=false;