diff options
Diffstat (limited to 'src/wallet.h')
-rw-r--r-- | src/wallet.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet.h b/src/wallet.h index 1ccc29d3c8..fa8a94dfc1 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -143,6 +143,7 @@ public: { SetNull(); } + CWallet(std::string strWalletFileIn) { SetNull(); @@ -150,6 +151,13 @@ public: strWalletFile = strWalletFileIn; fFileBacked = true; } + + ~CWallet() + { + delete pwalletdbEncryption; + pwalletdbEncryption = NULL; + } + void SetNull() { nWalletVersion = FEATURE_BASE; |