Fix segmentation fault issue when using WX port command line
on Linux and MacOS.
This commit is contained in:
parent
36453885fc
commit
7373da1528
|
@ -590,7 +590,8 @@ bool wxvbamApp::OnCmdLineParsed(wxCmdLineParser& cl)
|
||||||
}
|
}
|
||||||
|
|
||||||
wxvbamApp::~wxvbamApp() {
|
wxvbamApp::~wxvbamApp() {
|
||||||
free(home);
|
if (home != NULL)
|
||||||
|
free(home);
|
||||||
}
|
}
|
||||||
|
|
||||||
MainFrame::MainFrame()
|
MainFrame::MainFrame()
|
||||||
|
|
|
@ -142,7 +142,7 @@ protected:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxPathList config_path;
|
wxPathList config_path;
|
||||||
char* home;
|
char* home = NULL;
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_APP(wxvbamApp);
|
DECLARE_APP(wxvbamApp);
|
||||||
|
|
Loading…
Reference in New Issue