diff --git a/src/wx/guiinit.cpp b/src/wx/guiinit.cpp index 654df8ba..2fa80bf9 100644 --- a/src/wx/guiinit.cpp +++ b/src/wx/guiinit.cpp @@ -3197,7 +3197,7 @@ void MainFrame::set_global_accels() // set the table on the panel, where focus usually is // otherwise accelerators are lost sometimes panel->SetAcceleratorTable(atab); - delete tab; + delete[] tab; } else { diff --git a/src/wx/wxvbam.h b/src/wx/wxvbam.h index 5a3b13ce..797218a9 100644 --- a/src/wx/wxvbam.h +++ b/src/wx/wxvbam.h @@ -57,7 +57,7 @@ class MainFrame; class wxvbamApp : public wxApp { public: - wxvbamApp() : wxApp(), pending_fullscreen(false) {} + wxvbamApp() : wxApp(), pending_fullscreen(false),cfg(NULL),overrides(NULL),frame(NULL) {} virtual bool OnInit(); virtual void OnInitCmdLine(wxCmdLineParser &); virtual bool OnCmdLineParsed(wxCmdLineParser &);