From 1c0955dd36466bc8e86449b31472c7a4a7a7206c Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 21 Aug 2007 08:05:14 +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/trunk@48252 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 e8f25b28d7..ee77609162 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -2796,6 +2796,9 @@ void wxAuiNotebook::InitNotebook(long style) wxAuiNotebook::~wxAuiNotebook() { + while ( GetPageCount() > 0 ) + DeletePage(0); + m_mgr.UnInit(); } -- 2.50.0