mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-30 23:22:42 +02:00
fixed wrong assumption in 14401
git-svn-id: trunk@14413 -
This commit is contained in:
parent
df83fa1a25
commit
f17329bc7c
@ -143,6 +143,7 @@ type
|
||||
FRoot: TLazDockConfigNode;
|
||||
public
|
||||
constructor Create(const ADockerName: string; ANode: TLazDockConfigNode);
|
||||
destructor Destroy; override;
|
||||
procedure WriteDebugReport;
|
||||
property DockerName: string read FDockerName;
|
||||
property Root: TLazDockConfigNode read FRoot;
|
||||
@ -1893,7 +1894,6 @@ begin
|
||||
Layout:=GetLayoutFromControl;
|
||||
if (Layout=nil) then exit;
|
||||
Manager.AddOrReplaceConfig(DockerName,Layout);
|
||||
Layout.Free;
|
||||
end;
|
||||
|
||||
procedure TCustomLazControlDocker.RestoreLayout;
|
||||
@ -3916,6 +3916,12 @@ begin
|
||||
FRoot:=ANode;
|
||||
end;
|
||||
|
||||
destructor TLazDockerConfig.Destroy;
|
||||
begin
|
||||
FRoot.Free; // who will clear it else?
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
procedure TLazDockerConfig.WriteDebugReport;
|
||||
begin
|
||||
DebugLn(['TLazDockerConfig.WriteDebugReport DockerName="',DockerName,'"']);
|
||||
|
Loading…
Reference in New Issue
Block a user