diff options
author | Daniel Molkentin <danimo@owncloud.com> | 2016-06-02 01:51:24 +0300 |
---|---|---|
committer | Daniel Molkentin <danimo@owncloud.com> | 2016-06-02 16:03:52 +0300 |
commit | 1787da8a9de0c5c4a66e6417c987d453f31c95a3 (patch) | |
tree | d0c89f6db9d54cbe692d7ffa1a45a0794ffc136b /src | |
parent | 9ab812f89b6c895918e4f4bcbcc3a7093b9353a0 (diff) |
Fix memleak in updater
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/updater/ocupdater.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp index 9badb4423..1b9543613 100644 --- a/src/gui/updater/ocupdater.cpp +++ b/src/gui/updater/ocupdater.cpp @@ -218,6 +218,7 @@ void OCUpdater::slotVersionInfoArrived() { _timeoutWatchdog->stop(); QNetworkReply *reply = qobject_cast<QNetworkReply*>(sender()); + reply->deleteLater(); if( reply->error() != QNetworkReply::NoError ) { qDebug() << "Failed to reach version check url: " << reply->errorString(); return; @@ -258,6 +259,7 @@ void NSISUpdater::slotWriteFile() void NSISUpdater::slotDownloadFinished() { QNetworkReply *reply = qobject_cast<QNetworkReply*>(sender()); + reply->deleteLater(); if (reply->error() != QNetworkReply::NoError) { setDownloadState(DownloadFailed); return; |