X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7608fd01a153e75d5a46da72df73b94b9f73320c..76adcbf2d1e2a0b47abec763e327ed716c97950d:/src/aui/framemanager.cpp diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 30197f6d84..fb40bea51d 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -511,11 +511,10 @@ wxAuiManager::wxAuiManager(wxWindow* managed_wnd, unsigned int flags) wxAuiManager::~wxAuiManager() { - int i; - for (i = 0; i < m_panes.Count(); i++ ) + for ( size_t i = 0; i < m_panes.size(); i++ ) { - wxAuiPaneInfo& pinfo = m_panes.Item(i); - if (pinfo.window && pinfo.window->GetParent() == 0) + wxAuiPaneInfo& pinfo = m_panes[i]; + if (pinfo.window && !pinfo.window->GetParent()) delete pinfo.window; }