fix for the previous commit: delete m_conv after calling Flush() which uses it
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 Apr 2006 00:52:21 +0000 (00:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 Apr 2006 00:52:21 +0000 (00:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fileconf.cpp

index d43cc89957b1c58fd26754c6e294b1bf83890b26..385b76df94279ac0194b2184894c92c638239652 100644 (file)
@@ -568,11 +568,11 @@ void wxFileConfig::CleanUp()
 
 wxFileConfig::~wxFileConfig()
 {
-    delete m_conv;
-
     Flush();
 
     CleanUp();
+
+    delete m_conv;
 }
 
 // ----------------------------------------------------------------------------