summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-05 16:44:41 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-05 16:44:41 (GMT)
commit36f439a3c225905c999875166144f4858673d54d (patch)
tree4e562a8ac6c794a08b79a3856b10b106e51783d9
parent7983a237ebb3c598c8564031f07804172d079aaa (diff)
Fix mem leak
-rw-r--r--webengineviewer/src/checkphishingurl/checkphishingurljob.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp b/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
index 6001115..fc8f09d 100644
--- a/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
+++ b/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
@@ -38,8 +38,12 @@ CheckPhishingUrlJob::~CheckPhishingUrlJob()
void CheckPhishingUrlJob::slotCheckUrlFinished(QNetworkReply *reply)
{
- qDebug() << " info : " << QString::fromUtf8(reply->readAll());
+ const QString jsonStr = QString::fromUtf8(reply->readAll());
+
+ qDebug() << " info : " << jsonStr;
+ //TODO extract info from
//TODO Q_EMIT result(MessageViewer::CheckPhishingUrlJob:: ?);
+ reply->deleteLater();
deleteLater();
}