prevent memory leak

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams
2008-06-03 16:51:43 +00:00
parent 26a52b47a1
commit dbdb570aef

View File

@@ -2309,7 +2309,9 @@ wxSizer* wxAuiManager::LayoutAll(wxAuiPaneInfoArray& panes,
if (middle->GetChildren().GetCount() > 0)
cont->Add(middle, 1, wxEXPAND);
else
delete middle;
// find any bottom docks in this layer