mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 20:40:29 +02:00
LCL: fixed calling finalization handlers when Application=nil
git-svn-id: trunk@21397 -
This commit is contained in:
parent
1a7644e937
commit
766a2fcfb4
@ -1785,7 +1785,6 @@ begin
|
||||
Screen.DestroyCursors;
|
||||
Screen.DestroyMonitors;
|
||||
end;
|
||||
if Application=nil then exit;
|
||||
Application.Free;
|
||||
Application:=nil;
|
||||
FreeAllClipBoards;
|
||||
|
@ -1357,7 +1357,7 @@ procedure CallInterfaceFinalizationHandlers;
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
for i:=0 to InterfaceFinalizationHandlers.Count-1 do
|
||||
for i:=InterfaceFinalizationHandlers.Count-1 downto 0 do
|
||||
TProcedure(InterfaceFinalizationHandlers[i])();
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user