memory leak plugged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1998-07-12 22:05:16 +00:00
parent cd70477bbd
commit 128aec1da4

View File

@ -181,6 +181,13 @@ wxFileConfig::~wxFileConfig()
{
Flush();
delete m_pRootGroup;
LineList *pCur = m_linesHead;
while ( pCur != NULL ) {
LineList *pNext = pCur->Next();
delete pCur;
pCur = pNext;
}
}
// ----------------------------------------------------------------------------