diff --git a/kdevplatform/documentation/standarddocumentationview.cpp b/kdevplatform/documentation/standarddocumentationview.cpp index 9a7ff9bc1d347a3a7b449d399750d7228d988d09..bf735e2d6ee7731a6b262e9aa3dc46b930ca1154 100644 --- a/kdevplatform/documentation/standarddocumentationview.cpp +++ b/kdevplatform/documentation/standarddocumentationview.cpp @@ -99,6 +99,13 @@ public: QWebEngineView* m_view = nullptr; StandardDocumentationPage* m_page = nullptr; + ~StandardDocumentationViewPrivate() + { + // make sure the page is deleted before the profile + // see https://doc.qt.io/qt-5/qwebenginepage.html#QWebEnginePage-1 + delete m_page; + } + void init(StandardDocumentationView* parent) { // prevent QWebEngine (Chromium) from overriding the signal handlers of KCrash