Commit 7373da15 authored by Edênis Freindorfer Azevedo's avatar Edênis Freindorfer Azevedo Committed by Rafael Kitover
Browse files

Fix segmentation fault issue when using WX port command line

on Linux and MacOS.
parent 36453885
......@@ -590,7 +590,8 @@ bool wxvbamApp::OnCmdLineParsed(wxCmdLineParser& cl)
}
wxvbamApp::~wxvbamApp() {
free(home);
if (home != NULL)
free(home);
}
MainFrame::MainFrame()
......
......@@ -142,7 +142,7 @@ protected:
private:
wxPathList config_path;
char* home;
char* home = NULL;
};
DECLARE_APP(wxvbamApp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment