mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 23:40:06 +02:00
fixed memleak
git-svn-id: trunk@8661 -
This commit is contained in:
parent
e97bd8159a
commit
7091bb7446
@ -42,7 +42,7 @@ uses
|
|||||||
|
|
||||||
Var
|
Var
|
||||||
TemplateProjectDescriptor : TTemplateProjectDescriptor;
|
TemplateProjectDescriptor : TTemplateProjectDescriptor;
|
||||||
IDETemplates : TProjectTemplates;
|
IDETemplates : TProjectTemplates = nil;
|
||||||
itmFileNewFromTemplate : TIDEMenuSection;
|
itmFileNewFromTemplate : TIDEMenuSection;
|
||||||
MenuList : TObjectList;
|
MenuList : TObjectList;
|
||||||
|
|
||||||
@ -348,5 +348,6 @@ end;
|
|||||||
Initialization
|
Initialization
|
||||||
MenuList:=TObjectList.Create;
|
MenuList:=TObjectList.Create;
|
||||||
Finalization
|
Finalization
|
||||||
|
FreeAndNil(IDETemplates);
|
||||||
FreeAndNil(MenuList);
|
FreeAndNil(MenuList);
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user