mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-11 07:40:39 +01:00
EditorSyntaxHighlighterDef: Free callback list, if editoropts where not created. Fixes #41732
This commit is contained in:
parent
c8e1818c64
commit
4a28f12f43
@ -153,9 +153,14 @@ end;
|
||||
|
||||
procedure _IDE_CallOnIdeColorSchemeListCreated;
|
||||
begin
|
||||
if OnIdeColorSchemeListCreated = nil then
|
||||
exit;
|
||||
OnIdeColorSchemeListCreated.CallNotifyEvents(nil);
|
||||
FreeAndNil(OnIdeColorSchemeListCreated);
|
||||
end;
|
||||
|
||||
finalization
|
||||
FreeAndNil(OnIdeColorSchemeListCreated);
|
||||
|
||||
end.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user