mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
Fix segmentation fault issue when using WX port command line
on Linux and MacOS.
This commit is contained in:
committed by
Rafael Kitover
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);
|
||||||
|
Reference in New Issue
Block a user