diff --git a/samples/event/event.cpp b/samples/event/event.cpp index 15895cf038..f158b8695b 100644 --- a/samples/event/event.cpp +++ b/samples/event/event.cpp @@ -191,6 +191,9 @@ bool MyApp::OnInit() MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) : wxFrame((wxFrame *)NULL, -1, title, pos, size) { + // init members + m_nPush = 0; + // create a menu bar wxMenu *menuFile = new wxMenu;