File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -3937,15 +3937,12 @@ CWallet* CWallet::CreateWalletFromFile(const std::string walletFile)
3937
3937
uiInterface.InitMessage (_ (" Zapping all transactions from wallet..." ));
3938
3938
3939
3939
std::unique_ptr<CWalletDBWrapper> dbw (new CWalletDBWrapper (&bitdb, walletFile));
3940
- CWallet * tempWallet = new CWallet (std::move (dbw));
3940
+ std::unique_ptr< CWallet> tempWallet ( new CWallet (std::move (dbw) ));
3941
3941
DBErrors nZapWalletRet = tempWallet->ZapWalletTx (vWtx);
3942
3942
if (nZapWalletRet != DB_LOAD_OK) {
3943
3943
InitError (strprintf (_ (" Error loading %s: Wallet corrupted" ), walletFile));
3944
3944
return nullptr ;
3945
3945
}
3946
-
3947
- delete tempWallet;
3948
- tempWallet = nullptr ;
3949
3946
}
3950
3947
3951
3948
uiInterface.InitMessage (_ (" Loading wallet..." ));
You can’t perform that action at this time.
0 commit comments