mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 23:49:36 +02:00
LCL: TControl.Destroy: clean up FHostDockSite even if HostDockite is destroying
git-svn-id: trunk@23037 -
This commit is contained in:
parent
957ae67d77
commit
d036fbc462
@ -4201,8 +4201,13 @@ begin
|
||||
SetParent(nil);
|
||||
Dock(nil, BoundsRect);
|
||||
FHostDockSite := nil;
|
||||
end else
|
||||
end else begin
|
||||
if (FHostDockSite<>nil) and (FHostDockSite.FDockClients<>nil) then begin
|
||||
FHostDockSite.FDockClients.Remove(Self);
|
||||
FHostDockSite:=nil;
|
||||
end;
|
||||
SetParent(nil);
|
||||
end;
|
||||
FreeThenNil(FActionLink);
|
||||
for Side := Low(FAnchorSides) to High(FAnchorSides) do
|
||||
FreeThenNil(FAnchorSides[Side]);
|
||||
|
Loading…
Reference in New Issue
Block a user