git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12896
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxFontMapper::~wxFontMapper()
{
+#if wxUSE_CONFIG
+ if ( m_configIsDummy )
+ delete m_config;
+#endif // wxUSE_CONFIG
}
// ----------------------------------------------------------------------------
{
// VS: in case we created dummy m_config (see above), we want to switch back
// to the real one as soon as one becomes available.
+ delete m_config;
m_config = wxConfig::Get(FALSE);
m_configIsDummy = FALSE;
// FIXME: ideally, we should add keys from dummy config to the real one now,