[Pkg-owncloud-commits] [owncloud-client] 18/27: HTTPCreds: Do delete the WritePasswordJob to not leak memory.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Jul 29 16:23:59 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 1fb52f0d8bab8ee1d3050d49438b2f3552f6b39f
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Wed Jul 23 17:58:28 2014 +0200

    HTTPCreds: Do delete the WritePasswordJob to not leak memory.
---
 src/creds/httpcredentials.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/creds/httpcredentials.cpp b/src/creds/httpcredentials.cpp
index 81899a2..9b9a6e0 100644
--- a/src/creds/httpcredentials.cpp
+++ b/src/creds/httpcredentials.cpp
@@ -366,6 +366,8 @@ void HttpCredentials::slotWriteJobDone(QKeychain::Job *job)
     default:
         qDebug() << "Error while writing password" << job->errorString();
     }
+    WritePasswordJob *wjob = qobject_cast<WritePasswordJob*>(job);
+    wjob->deleteLater();
 }
 
 void HttpCredentials::slotAuthentication(QNetworkReply* reply, QAuthenticator* authenticator)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list