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