X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7892e035c9a247715635ec82f139741d20d07358..538f284a44001ff8285eaafebcc384bf638b5d66:/samples/webview/webview.cpp diff --git a/samples/webview/webview.cpp b/samples/webview/webview.cpp index 4f679f872b..04e1db4e9a 100644 --- a/samples/webview/webview.cpp +++ b/samples/webview/webview.cpp @@ -360,6 +360,7 @@ WebFrame::WebFrame() : wxFrame(NULL, wxID_ANY, "wxWebView Sample") WebFrame::~WebFrame() { + delete m_timer; delete m_tools_menu; } @@ -596,8 +597,8 @@ void WebFrame::OnNewWindow(wxWebViewEvent& evt) void WebFrame::OnTitleChanged(wxWebViewEvent& evt) { + SetTitle(evt.GetString()); wxLogMessage("%s", "Title changed; title='" + evt.GetString() + "'"); - UpdateState(); } /**