mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-08 11:44:14 +01:00
wallet: Use shared pointer to retain wallet instance
This commit is contained in:
@@ -756,7 +756,7 @@ void MaybeCompactWalletDB()
|
||||
return;
|
||||
}
|
||||
|
||||
for (CWallet* pwallet : GetWallets()) {
|
||||
for (const std::shared_ptr<CWallet>& pwallet : GetWallets()) {
|
||||
WalletDatabase& dbh = pwallet->GetDBHandle();
|
||||
|
||||
unsigned int nUpdateCounter = dbh.nUpdateCounter;
|
||||
|
||||
Reference in New Issue
Block a user