diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-09-12 08:27:38 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-09-12 08:27:38 +0200 |
commit | d7030d88eee9a1ac285f00f3a252b63b9cd40a6c (patch) | |
tree | 9c48eaa8747226bccf4f6d5a4b0d31735fe8db0b /lib/connection.cpp | |
parent | 20f01303b40df8b7710dfa560940a7c71c1e9c19 (diff) | |
download | libquotient-d7030d88eee9a1ac285f00f3a252b63b9cd40a6c.tar.gz libquotient-d7030d88eee9a1ac285f00f3a252b63b9cd40a6c.zip |
Fix a leak in Connection::saveAccessTokenToKeychain()
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r-- | lib/connection.cpp | 2 |
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(); |