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:
parent
db33b8d860
commit
92b49be0c2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user