From 717dbb8e8670dcbf0de6e0c1a5a2673a83105904 Mon Sep 17 00:00:00 2001 From: Sergei Ilinykh Date: Sun, 31 Mar 2024 10:43:56 +0300 Subject: [PATCH] Fixed memory leak in chatview initialization --- src/chatview_webkit.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/chatview_webkit.cpp b/src/chatview_webkit.cpp index bd96188e4..1198f01eb 100644 --- a/src/chatview_webkit.cpp +++ b/src/chatview_webkit.cpp @@ -393,7 +393,6 @@ ChatView::ChatView(QWidget *parent) : QFrame(parent), d(new ChatViewPrivate) d->jsObject = new ChatViewJSObject(this); /* It's a session bridge between html and c++ part */ d->webView = new WebView(this); d->webView->setFocusPolicy(Qt::NoFocus); - auto page = new ChatViewPage(d->webView); d->webView->setPage(new ChatViewPage(d->webView)); d->webView->connectPageActions();