From dc63304c6920e3d392eb4e94e8e392e183e84e14 Mon Sep 17 00:00:00 2001 From: Arthur Moore Date: Fri, 13 Mar 2015 01:42:05 -0400 Subject: [PATCH] Fix some small errors that valgrind found --- src/wx/guiinit.cpp | 2 +- src/wx/wxvbam.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 &);