aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-09-12 10:01:40 +0200
committerGitHub <noreply@github.com>2022-09-12 10:01:40 +0200
commite003251fa57589fcdaa28b99157a845415a25370 (patch)
tree9c48eaa8747226bccf4f6d5a4b0d31735fe8db0b /lib/connection.cpp
parent20f01303b40df8b7710dfa560940a7c71c1e9c19 (diff)
parentd7030d88eee9a1ac285f00f3a252b63b9cd40a6c (diff)
downloadlibquotient-e003251fa57589fcdaa28b99157a845415a25370.tar.gz
libquotient-e003251fa57589fcdaa28b99157a845415a25370.zip
Merge #569: Fix a leak in Connection::saveAccessTokenToKeychain()
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp2
1 files changed, 1 insertions, 1 deletions
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();