coins: call ClearFlags in CCoinsCacheEntry destructor
No behavior change. Prepares for flags adding CCoinsCacheEntrys to a linked list which need to be removed on destruction.
This commit is contained in:
1 file changed
+4
@@ -136,6 +136,10 @@ public:
|
|||||||
|
|
||||||
CCoinsCacheEntry() noexcept = default;
|
CCoinsCacheEntry() noexcept = default;
|
||||||
explicit CCoinsCacheEntry(Coin&& coin_) noexcept : coin(std::move(coin_)) {}
|
explicit CCoinsCacheEntry(Coin&& coin_) noexcept : coin(std::move(coin_)) {}
|
||||||
|
~CCoinsCacheEntry()
|
||||||
|
{
|
||||||
|
ClearFlags();
|
||||||
|
}
|
||||||
|
|
||||||
//! Adding a flag also requires a self reference to the pair that contains
|
//! Adding a flag also requires a self reference to the pair that contains
|
||||||
//! this entry in the CCoinsCache map and a reference to the sentinel of the
|
//! this entry in the CCoinsCache map and a reference to the sentinel of the
|
||||||
|
|||||||
Reference in new issue
Block a user