[kontact] [Bug 401337] Kmail crashes on hitting reply to email/new email
Laurent Montel
bugzilla_noreply at kde.org
Thu Nov 29 06:43:36 GMT 2018
https://bugs.kde.org/show_bug.cgi?id=401337
Laurent Montel <montel at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |montel at kde.org
--- Comment #5 from Laurent Montel <montel at kde.org> ---
(In reply to Allen Winter from comment #3)
> Here is my hack to get kmail working again (I doubt this is a kmail bug --
> more likely a QWebEngine bug). Be warned: you will see memory leaks with
> this patch.
>
> iff --git a/templateparser/src/templateparserextracthtmlinfo.cpp
> b/templateparser/src/templateparserextracthtmlinfo.cpp
> index 72dddbdc..2f7c59e8 100644
> --- a/templateparser/src/templateparserextracthtmlinfo.cpp
> +++ b/templateparser/src/templateparserextracthtmlinfo.cpp
> @@ -31,8 +31,8 @@
> TemplateParserExtractHtmlInfo::TemplateParserExtractHtmlInfo(QObject *parent)
>
> TemplateParserExtractHtmlInfo::~TemplateParserExtractHtmlInfo()
> {
> - delete mTemplateWebEngineView;
> - delete mExtractHtmlElementWebEngineView;
> + //delete mTemplateWebEngineView;
> + //delete mExtractHtmlElementWebEngineView;
> }
>
> void TemplateParserExtractHtmlInfo::setHtmlForExtractingTextPlain(const
> QString &html)
For sure a mem leak => it's not a good patch for source.
did you try a deleteLater() ?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list