LCL: TCustomForm.BeforeDestruction calling inherited

git-svn-id: trunk@26714 -
This commit is contained in:
mattias 2010-07-17 12:23:22 +00:00
parent ed89031721
commit 34fde7fc8c

View File

@ -90,9 +90,11 @@ end;
------------------------------------------------------------------------------}
procedure TCustomForm.BeforeDestruction;
begin
// set csDestroying
inherited BeforeDestruction;
//debugln(['TCustomForm.BeforeDestruction ',DbgSName(Self),' ',csDestroying in ComponentState]);
// EndWrite will happen in the destructor
GlobalNameSpace.BeginWrite;
Destroying;
Screen.FSaveFocusedList.Remove(Self);
RemoveFixupReferences(Self, '');
if FormStyle <> fsMDIChild then Hide;