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:
parent
c094d747a8
commit
a25484eb13
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user