Apply [ 1710684 ] Fix wxAuiNotebook memory leak

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-05-05 13:25:17 +00:00
parent 90ac8b5005
commit bd4e083419
2 changed files with 13 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,14 @@ wxAuiManager::wxAuiManager(wxWindow* managed_wnd, unsigned int flags)
wxAuiManager::~wxAuiManager()
{
int i;
for (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;
}