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:
@@ -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,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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user