lcl: don't directly destroy the page on deletion, use release component to postpone control death (issue #0014365)

git-svn-id: trunk@25126 -
This commit is contained in:
paul 2010-05-02 08:02:21 +00:00
parent 37bdc6873b
commit 8e3c6c7bda

View File

@ -114,7 +114,7 @@ begin
// delete handle
APage.Parent := nil;
// free the page
APage.Free;
Application.ReleaseComponent(APage);
end;
{$IFDEF NOTEBOOK_DEBUG}
DebugLn(['TNBPages.Delete END ',fNoteBook.Name,' Index=',Index,' fPageList.Count=',fPageList.Count,' fNoteBook.PageIndex=',fNoteBook.PageIndex]);