diff --git a/samples/webview/webview.cpp b/samples/webview/webview.cpp index bcadb595b6..4f679f872b 100644 --- a/samples/webview/webview.cpp +++ b/samples/webview/webview.cpp @@ -67,6 +67,7 @@ class WebFrame : public wxFrame { public: WebFrame(); + ~WebFrame(); void OnAnimationTimer(wxTimerEvent& evt); void UpdateState(); @@ -357,6 +358,11 @@ WebFrame::WebFrame() : wxFrame(NULL, wxID_ANY, "wxWebView Sample") wxCommandEventHandler(WebFrame::OnLoadScheme), NULL, this ); } +WebFrame::~WebFrame() +{ + delete m_tools_menu; +} + void WebFrame::OnAnimationTimer(wxTimerEvent& WXUNUSED(evt)) { m_animation_angle += 15;