summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-12 10:33:53 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-12 10:33:53 +0200
commit42a0a1c79998a428315f01fd1b3ddedc575f9eba (patch)
treebeeb1dbf74afaae3f1d1660ae5f730ce58d888b7 /src
parentprevent icon loading when error page (diff)
downloadrekonq-42a0a1c79998a428315f01fd1b3ddedc575f9eba.tar.xz
Fix memory leaks
Diffstat (limited to 'src')
-rw-r--r--src/cookiejar.cpp1
-rw-r--r--src/webpage.cpp7
-rw-r--r--src/webpage.h3
3 files changed, 9 insertions, 2 deletions
diff --git a/src/cookiejar.cpp b/src/cookiejar.cpp
index 7007bc61..bef1c51c 100644
--- a/src/cookiejar.cpp
+++ b/src/cookiejar.cpp
@@ -56,6 +56,7 @@ CookieJar::CookieJar(QObject* parent)
CookieJar::~CookieJar()
{
+ delete m_kcookiejar;
}
diff --git a/src/webpage.cpp b/src/webpage.cpp
index c91b9471..c9a9b840 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -72,7 +72,7 @@ WebPage::WebPage(QObject *parent)
: QWebPage(parent)
, m_keyboardModifiers(Qt::NoModifier)
, m_pressedButtons(Qt::NoButton)
- , m_requestedUrl("")
+ , m_requestedUrl()
{
setForwardUnsupportedContent(true);
@@ -84,6 +84,11 @@ WebPage::WebPage(QObject *parent)
}
+WebPage::~WebPage()
+{
+}
+
+
bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type)
{
m_requestedUrl = request.url();
diff --git a/src/webpage.h b/src/webpage.h
index a8efb95a..a000a663 100644
--- a/src/webpage.h
+++ b/src/webpage.h
@@ -49,7 +49,8 @@ class WebPage : public QWebPage
public:
explicit WebPage(QObject *parent = 0);
-
+ ~WebPage();
+
public slots:
void manageNetworkErrors(QNetworkReply* reply);