X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.cpp;h=30590c80e6f9d768ec08834261e941ca72eeabc5;hb=3a4d81724e873f967b74759d539e05c73f95aeeb;hp=8a33041a1c24ed4cdda5880d0c78525e35a86319;hpb=38067c18f8b54c7121643fa3291ffe81b6eefef1;p=novacoin.git diff --git a/src/wallet.cpp b/src/wallet.cpp index 8a33041..30590c8 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -235,7 +235,7 @@ bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase) if (!pwalletdbEncryption->TxnCommit()) exit(1); //We now have keys encrypted in memory, but no on disk...die to avoid confusion and let the user reload their unencrypted wallet. - pwalletdbEncryption->Close(); + delete pwalletdbEncryption; pwalletdbEncryption = NULL; }