fix live children left behind at destroy

Change-Id: I5c02f27e72635b5cb658a620ead63ff3229c3994
This commit is contained in:
Noel Grandin 2015-04-16 10:12:40 +02:00
parent 5040e5038c
commit 3e710c27f7
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ namespace pcr
if (nTmpPage)
m_nActivePage = nTmpPage;
}
m_pPropBox.clear();
m_pPropBox.disposeAndClear();
vcl::Window::dispose();
}

View File

@ -155,7 +155,7 @@ namespace frm
for (auto i = m_aChildWins.begin(); i != m_aChildWins.end(); ++i)
i->disposeAndClear();
m_aChildWins.clear();
m_pToolbar.clear();
m_pToolbar.disposeAndClear();
vcl::Window::dispose();
}