mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 20:40:36 +02:00
IDE: Fix a crash if IDE is aborted before updating configuration.
git-svn-id: trunk@63939 -
This commit is contained in:
parent
31487c5ae1
commit
6fddd1aaf4
@ -1664,8 +1664,9 @@ end;
|
||||
destructor TMainIDE.Destroy;
|
||||
begin
|
||||
ToolStatus:=itExiting;
|
||||
|
||||
IDECommandList.RemoveCustomUpdateEvent(@UpdateMainIDECommands);
|
||||
// IDECommandList may be Nil if the IDE is aborted before updating configuration.
|
||||
if Assigned(IDECommandList) then
|
||||
IDECommandList.RemoveCustomUpdateEvent(@UpdateMainIDECommands);
|
||||
|
||||
if Assigned(ExternalToolList) then
|
||||
ExternalToolList.TerminateAll;
|
||||
|
Loading…
Reference in New Issue
Block a user