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:
@@ -2232,6 +2232,11 @@ public:
|
||||
m_tab_ctrl_height = 20;
|
||||
}
|
||||
|
||||
~wxTabFrame()
|
||||
{
|
||||
wxDELETE(m_tabs);
|
||||
}
|
||||
|
||||
void SetTabCtrlHeight(int h)
|
||||
{
|
||||
m_tab_ctrl_height = h;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user