mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 15:19:35 +02:00
fix 2 mem leaks
git-svn-id: trunk@14401 -
This commit is contained in:
parent
f859d23979
commit
64443a3455
@ -1885,6 +1885,7 @@ begin
|
||||
Layout:=GetLayoutFromControl;
|
||||
if (Layout=nil) then exit;
|
||||
Manager.AddOrReplaceConfig(DockerName,Layout);
|
||||
Layout.Free;
|
||||
end;
|
||||
|
||||
procedure TCustomLazControlDocker.RestoreLayout;
|
||||
@ -2188,10 +2189,15 @@ begin
|
||||
end;
|
||||
|
||||
destructor TCustomLazControlDocker.Destroy;
|
||||
var
|
||||
i: integer;
|
||||
begin
|
||||
Control:=nil;
|
||||
Manager:=nil;
|
||||
inherited Destroy;
|
||||
if FMenus <> nil then
|
||||
for i := 0 to FMenus.Count - 1 do
|
||||
TLCDMenuItem(FMenus[i]).Free;
|
||||
FreeAndNil(FMenus);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user