Skip to content
Permalink
Browse files

Fix segmentation fault issue when using WX port command line

on Linux and MacOS.
  • Loading branch information
denisfa authored and rkitover committed Mar 7, 2019
1 parent 3645388 commit 7373da1528070b74027119696fe8ddacc5d8aa0d
Showing with 3 additions and 2 deletions.
  1. +2 −1 src/wx/wxvbam.cpp
  2. +1 −1 src/wx/wxvbam.h
@@ -590,7 +590,8 @@ bool wxvbamApp::OnCmdLineParsed(wxCmdLineParser& cl)
}

wxvbamApp::~wxvbamApp() {
free(home);
if (home != NULL)
free(home);
}

MainFrame::MainFrame()
@@ -142,7 +142,7 @@ class wxvbamApp : public wxApp {

private:
wxPathList config_path;
char* home;
char* home = NULL;
};

DECLARE_APP(wxvbamApp);

0 comments on commit 7373da1

Please sign in to comment.
You can’t perform that action at this time.