From 44f1ac5a186bcf7d2a253521eb4f2056c380e61a Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 21 Aug 2007 08:05:00 +0000 Subject: [PATCH] Fixed wxTabFrame leak by deleting all pages in the dtor (fixes bug [ 1774394 ] wxAuiNotebook::AddPage Memory Leak) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/auibook.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 2524ac216d..c30c2670a5 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -2879,6 +2879,9 @@ void wxAuiNotebook::InitNotebook(long style) wxAuiNotebook::~wxAuiNotebook() { + while ( GetPageCount() > 0 ) + DeletePage(0); + m_mgr.UnInit(); }