This commit is contained in:
Zach Fox 2018-06-04 14:41:18 -07:00
parent 7407507f0b
commit 60aff7a224

View file

@ -360,13 +360,16 @@ void Wallet::clear() {
// tell the provider we got nothing // tell the provider we got nothing
updateImageProvider(); updateImageProvider();
_passphrase->clear(); _passphrase->clear();
delete _passphrase;
} }
Wallet::~Wallet() { Wallet::~Wallet() {
if (_securityImage) { if (_securityImage) {
delete _securityImage; delete _securityImage;
} }
if (_passphrase) {
delete _passphrase;
}
} }
bool Wallet::setPassphrase(const QString& passphrase) { bool Wallet::setPassphrase(const QString& passphrase) {