prevent memory leak

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams 2008-06-03 16:52:59 +00:00
parent c094d747a8
commit a25484eb13

View File

@ -2321,7 +2321,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