mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 22:48:53 +00:00
Merge pull request #7867
eed7e79
UB: Not calling virtual method in destructor of WalletImpl (mj-xmr)
This commit is contained in:
commit
19a6cc26fc
@ -450,7 +450,7 @@ WalletImpl::~WalletImpl()
|
|||||||
LOG_PRINT_L1(__FUNCTION__);
|
LOG_PRINT_L1(__FUNCTION__);
|
||||||
m_wallet->callback(NULL);
|
m_wallet->callback(NULL);
|
||||||
// Pause refresh thread - prevents refresh from starting again
|
// 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 wallet - stores cache and stops ongoing refresh operation
|
||||||
close(false); // do not store wallet as part of the closing activities
|
close(false); // do not store wallet as part of the closing activities
|
||||||
// Stop refresh thread
|
// Stop refresh thread
|
||||||
|
Loading…
Reference in New Issue
Block a user