From d7030d88eee9a1ac285f00f3a252b63b9cd40a6c Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Mon, 12 Sep 2022 08:27:38 +0200 Subject: Fix a leak in Connection::saveAccessTokenToKeychain() --- lib/connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/connection.cpp b/lib/connection.cpp index 53c99969..5de02b8c 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -379,7 +379,7 @@ public: { qCDebug(MAIN) << "Saving access token to keychain for" << q->userId(); auto job = new QKeychain::WritePasswordJob(qAppName()); - job->setAutoDelete(false); + job->setAutoDelete(true); job->setKey(q->userId()); job->setBinaryData(data->accessToken()); job->start(); -- cgit v1.2.3