Fix some small errors that valgrind found

This commit is contained in:
Arthur Moore 2015-03-13 01:42:05 -04:00
parent 36cdf0e13d
commit dc63304c69
2 changed files with 2 additions and 2 deletions

View File

@ -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
{

View File

@ -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 &);