mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-24 20:30:49 +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;
|
procedure _IDE_CallOnIdeColorSchemeListCreated;
|
||||||
begin
|
begin
|
||||||
|
if OnIdeColorSchemeListCreated = nil then
|
||||||
|
exit;
|
||||||
OnIdeColorSchemeListCreated.CallNotifyEvents(nil);
|
OnIdeColorSchemeListCreated.CallNotifyEvents(nil);
|
||||||
FreeAndNil(OnIdeColorSchemeListCreated);
|
FreeAndNil(OnIdeColorSchemeListCreated);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
finalization
|
||||||
|
FreeAndNil(OnIdeColorSchemeListCreated);
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user