Changeset View
Changeset View
Standalone View
Standalone View
webenginepart/src/webenginepart.cpp
Show All 31 Lines | |||||
32 | 32 | | |||
33 | #include "webenginepart_ext.h" | 33 | #include "webenginepart_ext.h" | ||
34 | #include "webengineview.h" | 34 | #include "webengineview.h" | ||
35 | #include "webenginepage.h" | 35 | #include "webenginepage.h" | ||
36 | #include "websslinfo.h" | 36 | #include "websslinfo.h" | ||
37 | #include "webhistoryinterface.h" | 37 | #include "webhistoryinterface.h" | ||
38 | #include "webenginewallet.h" | 38 | #include "webenginewallet.h" | ||
39 | #include "webengineparterrorschemehandler.h" | 39 | #include "webengineparterrorschemehandler.h" | ||
40 | #include "webenginepartcookiejar.h" | ||||
40 | 41 | | |||
41 | #include "ui/searchbar.h" | 42 | #include "ui/searchbar.h" | ||
42 | #include "ui/passwordbar.h" | 43 | #include "ui/passwordbar.h" | ||
43 | #include "ui/featurepermissionbar.h" | 44 | #include "ui/featurepermissionbar.h" | ||
44 | #include "settings/webenginesettings.h" | 45 | #include "settings/webenginesettings.h" | ||
45 | 46 | | |||
46 | #include <kcodecaction.h> | 47 | #include <kcodecaction.h> | ||
47 | #include <kio/global.h> | 48 | #include <kio/global.h> | ||
Show All 40 Lines | 80 | WebEnginePart::WebEnginePart(QWidget *parentWidget, QObject *parent, | |||
88 | m_featurePermissionBar(0), | 89 | m_featurePermissionBar(0), | ||
89 | m_wallet(Q_NULLPTR) | 90 | m_wallet(Q_NULLPTR) | ||
90 | { | 91 | { | ||
91 | QWebEngineProfile *prof = QWebEngineProfile::defaultProfile(); | 92 | QWebEngineProfile *prof = QWebEngineProfile::defaultProfile(); | ||
92 | if (!prof->urlSchemeHandler("error")) { | 93 | if (!prof->urlSchemeHandler("error")) { | ||
93 | prof->installUrlSchemeHandler("error", new WebEnginePartErrorSchemeHandler(prof)); | 94 | prof->installUrlSchemeHandler("error", new WebEnginePartErrorSchemeHandler(prof)); | ||
94 | prof->installUrlSchemeHandler("help", new WebEnginePartKIOHandler(prof)); | 95 | prof->installUrlSchemeHandler("help", new WebEnginePartKIOHandler(prof)); | ||
95 | } | 96 | } | ||
97 | static WebEnginePartCookieJar s_cookieJar(prof, prof); | ||||
96 | KAboutData about = KAboutData(QStringLiteral("webenginepart"), | 98 | KAboutData about = KAboutData(QStringLiteral("webenginepart"), | ||
dfaure: Leaked (never deleted).
No effect on the user (lifetime = application) but would show up in… | |||||
97 | i18nc("Program Name", "WebEnginePart"), | 99 | i18nc("Program Name", "WebEnginePart"), | ||
98 | /*version*/ QStringLiteral("1.3.0"), | 100 | /*version*/ QStringLiteral("1.3.0"), | ||
99 | i18nc("Short Description", "QtWebEngine Browser Engine Component"), | 101 | i18nc("Short Description", "QtWebEngine Browser Engine Component"), | ||
100 | KAboutLicense::LGPL, | 102 | KAboutLicense::LGPL, | ||
101 | i18n("(C) 2009-2010 Dawit Alemayehu\n" | 103 | i18n("(C) 2009-2010 Dawit Alemayehu\n" | ||
102 | "(C) 2008-2010 Urs Wolfer\n" | 104 | "(C) 2008-2010 Urs Wolfer\n" | ||
103 | "(C) 2007 Trolltech ASA")); | 105 | "(C) 2007 Trolltech ASA")); | ||
104 | 106 | | |||
▲ Show 20 Lines • Show All 853 Lines • Show Last 20 Lines |
Leaked (never deleted).
No effect on the user (lifetime = application) but would show up in memory leak checkers.
Use a local static variable here (no pointer)? Will get created the first time we're here.