mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 18:40:33 +02:00
LCL: TApplication.Destroy: free crit section later
git-svn-id: trunk@31145 -
This commit is contained in:
parent
7e5a735d6a
commit
6c9cc59de9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user