mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:39:36 +02:00
Menu designer: Free the designer correctly. The GUI form is not a master any more.
git-svn-id: trunk@51545 -
This commit is contained in:
parent
3f1790264f
commit
969f23b12f
@ -137,7 +137,7 @@ end;
|
||||
|
||||
constructor TMenuDesignerForm.Create(aDesigner: TMenuDesignerBase);
|
||||
begin
|
||||
Inherited Create(LazarusIDE.OwningComponent);
|
||||
Inherited Create(Nil); // LazarusIDE.OwningComponent
|
||||
FDesigner := aDesigner;
|
||||
end;
|
||||
|
||||
|
@ -4111,5 +4111,8 @@ initialization
|
||||
RegisterComponentEditor(TMenu, TMainMenuComponentEditor);
|
||||
RegisterPropertyEditor(TypeInfo(TMenu), TMenu, 'Items', TMenuItemsPropertyEditor);
|
||||
|
||||
finalization
|
||||
FreeAndNil(MenuDesignerSingleton);
|
||||
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user