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:
@@ -2321,7 +2321,9 @@ wxSizer* wxAuiManager::LayoutAll(wxAuiPaneInfoArray& panes,
|
|||||||
|
|
||||||
if (middle->GetChildren().GetCount() > 0)
|
if (middle->GetChildren().GetCount() > 0)
|
||||||
cont->Add(middle, 1, wxEXPAND);
|
cont->Add(middle, 1, wxEXPAND);
|
||||||
|
else
|
||||||
|
delete middle;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// find any bottom docks in this layer
|
// find any bottom docks in this layer
|
||||||
|
Reference in New Issue
Block a user