Avoid keeping Account alive via a shared ptr in ClientSideEncryption
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 19 Jan 2021 14:09:38 +0000 (15:09 +0100)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Tue, 26 Jan 2021 11:20:13 +0000 (11:20 +0000)
commit4168c0d082de4ce7ea50bb75a086072ea87e2880
tree55cd5ae776eb59d0e37ba2861b5b5b39efecd1d3
parent737158e9b45259ea140fa8b65bfe7e6506f1477a
Avoid keeping Account alive via a shared ptr in ClientSideEncryption

This account object was really only used during the initialization phase
or for forgetting the sensitive data. So let's receive it as parameter
there and pass it on from job to job as needed.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/accountmanager.cpp
src/gui/connectionvalidator.cpp
src/libsync/account.cpp
src/libsync/clientsideencryption.cpp
src/libsync/clientsideencryption.h