Delete the menu on close in the wxWebView sample. Fixes most of the memory leaks.

See #13500

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-09-28 19:44:35 +00:00
parent e924e848f7
commit 7892e035c9

View File

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