IDE: Fix a crash if IDE is aborted before updating configuration.

git-svn-id: trunk@63939 -
This commit is contained in:
juha 2020-09-29 23:07:27 +00:00
parent 31487c5ae1
commit 6fddd1aaf4

View File

@ -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;