X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/876419ce60c535a06fde52023f7360d2d29ee82a..db138a4c2a47b02fa9b3d0a361e626df00316ba9:/src/common/fileconf.cpp diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index f2e2c35e03..bc0e8aa5ac 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -40,8 +40,8 @@ #include // _WINDOWS_ is defined when windows.h is included, -// __WINDOWS__ is defined for MS Windows compilation -#if defined(__WINDOWS__) && !defined(_WINDOWS_) +// __WXMSW__ is defined for MS Windows compilation +#if defined(__WXMSW__) && !defined(_WINDOWS_) #include #endif //windows.h @@ -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; + } } // ----------------------------------------------------------------------------