diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 2482693f65..bc0e8aa5ac 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -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; + } } // ----------------------------------------------------------------------------