LCL: anchordocking: fixed freeing TLazDockForm on undock

git-svn-id: trunk@14075 -
This commit is contained in:
mattias 2008-02-10 23:29:07 +00:00
parent 11e7b203ca
commit 28d926e861

View File

@ -1670,7 +1670,9 @@ begin
DebugLn('TCustomAnchoredDockManager.DeleteDockForm ADockForm=',DbgSName(ADockForm));
if ADockForm.Parent<>nil then
UndockControl(ADockForm,false);
ADockForm.Free;
ADockForm.DockManager:=nil;
ADockForm.UseDockManager:=false;
Application.ReleaseComponent(ADockForm);
end;
function TCustomAnchoredDockManager.GetAnchorDepth(AControl: TControl;