1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 12:46:35 +01:00

Don't leak web page

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
This commit is contained in:
Anthony Fieroni 2017-05-09 20:37:39 +03:00 committed by David Rosca
parent db33b8d860
commit 92b49be0c2

View File

@ -146,6 +146,10 @@ void WebView::setPage(WebPage *page)
return;
}
if (m_page) {
m_page->deleteLater(); // we are the parent, see below
}
m_page = page;
m_page->setParent(this);
QWebEngineView::setPage(m_page);