From f9a0d202de2b5b1108272f765813badd1aedc6f2 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 26 Jan 2017 20:45:38 +0100 Subject: [PATCH] WebScrollBarManager: Guard against ScrollBarData being deleted --- src/lib/webengine/webscrollbarmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/webengine/webscrollbarmanager.cpp b/src/lib/webengine/webscrollbarmanager.cpp index 5f279222a..465d74da2 100644 --- a/src/lib/webengine/webscrollbarmanager.cpp +++ b/src/lib/webengine/webscrollbarmanager.cpp @@ -142,7 +142,7 @@ void WebScrollBarManager::addWebView(WebView *view) QPointer p(view); view->page()->runJavaScript(source, WebPage::SafeJsWorld, [=](const QVariant &res) { - if (!p) { + if (!p || !m_scrollbars.contains(view)) { return; } const QVariantMap map = res.toMap();