From 128aec1da47167ff89d420b57c0d232266b29413 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 12 Jul 1998 22:05:16 +0000 Subject: [PATCH] memory leak plugged git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fileconf.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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; + } } // ---------------------------------------------------------------------------- -- 2.45.2