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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user