wx: Fix conditional jump on uninitialized value with valgrind.
==15788== Conditional jump or move depends on uninitialised value(s) ==15788== at 0x5143A2: wxvbamApp::~wxvbamApp() (wxvbam.cpp:682) ==15788== by 0x5144BB: wxvbamApp::~wxvbamApp() (wxvbam.cpp:676) ==15788== by 0x739CD22: wxEntryCleanup() (in /usr/lib64/libwx_baseu-3.0.so.0.4.0) ==15788== by 0x739D02B: wxUninitialize() (in /usr/lib64/libwx_baseu-3.0.so.0.4.0) ==15788== by 0x739CE39: wxEntry(int&, wchar_t**) (in /usr/lib64/libwx_baseu-3.0.so.0.4.0) ==15788== by 0x50BD42: main (wxvbam.cpp:32) v2: Initialize overrides as a nullptr.
This commit is contained in:
parent
6adf5ea487
commit
65c908141c
|
@ -120,7 +120,7 @@ public:
|
|||
// the main configuration
|
||||
wxFileConfig* cfg;
|
||||
// vba-over.ini
|
||||
wxFileConfig* overrides;
|
||||
wxFileConfig* overrides = nullptr;
|
||||
|
||||
wxFileName rom_database;
|
||||
wxFileName rom_database_scene;
|
||||
|
|
Loading…
Reference in New Issue