Merge pull request #4996
d0c4197change exit(1) to an assert in CWallet::EncryptWallet (Philip Kaufmann)870da77fix possible memory leaks in CWallet::EncryptWallet (Philip Kaufmann)f606bb9fix a possible memory leak in CWalletDB::Recover (Philip Kaufmann)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user