Old configuration delete added
This commit is contained in:
parent
1cb4f470c6
commit
ee7f94d776
@ -34,7 +34,8 @@ ZRColaApp::ZRColaApp() : wxApp()
|
|||||||
|
|
||||||
bool ZRColaApp::OnInit()
|
bool ZRColaApp::OnInit()
|
||||||
{
|
{
|
||||||
wxConfigBase::Set(new wxConfig(wxT(ZRCOLA_CFG_APPLICATION), wxT(ZRCOLA_CFG_VENDOR)));
|
wxConfigBase *cfgPrev = wxConfigBase::Set(new wxConfig(wxT(ZRCOLA_CFG_APPLICATION), wxT(ZRCOLA_CFG_VENDOR)));
|
||||||
|
if (cfgPrev) wxDELETE(cfgPrev);
|
||||||
|
|
||||||
if (!wxApp::OnInit())
|
if (!wxApp::OnInit())
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user