mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 03:59:33 +00:00
UB: virtual method in destructor of WalletImpl v0.17
This commit is contained in:
parent
2222bea92f
commit
36527c05bd
1 changed files with 1 additions and 1 deletions
|
@ -453,7 +453,7 @@ WalletImpl::~WalletImpl()
|
|||
LOG_PRINT_L1(__FUNCTION__);
|
||||
m_wallet->callback(NULL);
|
||||
// Pause refresh thread - prevents refresh from starting again
|
||||
pauseRefresh();
|
||||
WalletImpl::pauseRefresh(); // Call the method directly (not polymorphically) to protect against UB in destructor.
|
||||
// Close wallet - stores cache and stops ongoing refresh operation
|
||||
close(false); // do not store wallet as part of the closing activities
|
||||
// Stop refresh thread
|
||||
|
|
Loading…
Reference in a new issue