Backport from HEAD: Fix memory leak in wxAUI.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-05-05 13:55:36 +00:00
parent 26001fdbee
commit 503af0875f
2 changed files with 11 additions and 0 deletions

View File

@@ -2232,6 +2232,11 @@ public:
m_tab_ctrl_height = 20;
}
~wxTabFrame()
{
wxDELETE(m_tabs);
}
void SetTabCtrlHeight(int h)
{
m_tab_ctrl_height = h;

View File

@@ -511,6 +511,12 @@ wxAuiManager::wxAuiManager(wxWindow* managed_wnd, unsigned int flags)
wxAuiManager::~wxAuiManager()
{
for(int i = 0; i < m_panes.Count(); i++ )
{
wxAuiPaneInfo& pinfo = m_panes.Item(i);
if( pinfo.window && pinfo.window->GetParent() == 0 )
delete pinfo.window;
}
delete m_art;
}