mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 02:36:23 +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);
|
SetParent(nil);
|
||||||
Dock(nil, BoundsRect);
|
Dock(nil, BoundsRect);
|
||||||
FHostDockSite := nil;
|
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);
|
SetParent(nil);
|
||||||
|
end;
|
||||||
FreeThenNil(FActionLink);
|
FreeThenNil(FActionLink);
|
||||||
for Side := Low(FAnchorSides) to High(FAnchorSides) do
|
for Side := Low(FAnchorSides) to High(FAnchorSides) do
|
||||||
FreeThenNil(FAnchorSides[Side]);
|
FreeThenNil(FAnchorSides[Side]);
|
||||||
|
Loading…
Reference in New Issue
Block a user