qt: Add missing lock in WalletModel::listCoins

Another problem detected by cs_wallet lock detection (#3401).
This commit is contained in:
Wladimir J. van der Laan 2014-01-06 12:58:06 +01:00
parent 28352af060
commit d31ad26550

View file

@ -502,6 +502,7 @@ void WalletModel::listCoins(std::map<QString, std::vector<COutput> >& mapCoins)
std::vector<COutput> vCoins;
wallet->AvailableCoins(vCoins);
LOCK(wallet->cs_wallet); // ListLockedCoins, mapWallet
std::vector<COutPoint> vLockedCoins;
wallet->ListLockedCoins(vLockedCoins);