EditorSyntaxHighlighterDef: Free callback list, if editoropts where not created. Fixes #41732

This commit is contained in:
Martin 2025-07-01 20:05:50 +02:00
parent c8e1818c64
commit 4a28f12f43

View File

@ -153,9 +153,14 @@ end;
procedure _IDE_CallOnIdeColorSchemeListCreated;
begin
if OnIdeColorSchemeListCreated = nil then
exit;
OnIdeColorSchemeListCreated.CallNotifyEvents(nil);
FreeAndNil(OnIdeColorSchemeListCreated);
end;
finalization
FreeAndNil(OnIdeColorSchemeListCreated);
end.