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 @@ -3934,15 +3934,12 @@ CWallet* CWallet::CreateWalletFromFile(const std::string walletFile)
3934
3934
uiInterface.InitMessage (_ (" Zapping all transactions from wallet..." ));
3935
3935
3936
3936
std::unique_ptr<CWalletDBWrapper> dbw (new CWalletDBWrapper (&bitdb, walletFile));
3937
- CWallet * tempWallet = new CWallet (std::move (dbw));
3937
+ std::unique_ptr< CWallet> tempWallet ( new CWallet (std::move (dbw) ));
3938
3938
DBErrors nZapWalletRet = tempWallet->ZapWalletTx (vWtx);
3939
3939
if (nZapWalletRet != DB_LOAD_OK) {
3940
3940
InitError (strprintf (_ (" Error loading %s: Wallet corrupted" ), walletFile));
3941
3941
return nullptr ;
3942
3942
}
3943
-
3944
- delete tempWallet;
3945
- tempWallet = nullptr ;
3946
3943
}
3947
3944
3948
3945
uiInterface.InitMessage (_ (" Loading wallet..." ));
You can’t perform that action at this time.
0 commit comments