diff options
-rw-r--r-- | src/webview/qwebview_winrt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webview/qwebview_winrt.cpp b/src/webview/qwebview_winrt.cpp index d6ec493..fc999d2 100644 --- a/src/webview/qwebview_winrt.cpp +++ b/src/webview/qwebview_winrt.cpp @@ -348,6 +348,10 @@ QWinRTWebViewPrivate::~QWinRTWebViewPrivate() { QEventDispatcherWinRT::runOnXamlThread([this]() { HRESULT hr; + hr = d->ext->remove_NavigationStarting(d->navigationStartingToken); + Q_ASSERT_SUCCEEDED(hr); + hr = d->ext->remove_NavigationCompleted(d->navigationCompletedToken); + Q_ASSERT_SUCCEEDED(hr); ComPtr<IVector<UIElement *>> children; hr = d->host->get_Children(&children); Q_ASSERT_SUCCEEDED(hr); |