UB: Not calling virtual method in destructor of WalletImpl

This commit is contained in:
mj-xmr 2021-08-16 10:11:05 +02:00
parent 8fde011dbe
commit eed7e79c04
No known key found for this signature in database
GPG key ID: C101BF94093451E0

View file

@ -450,7 +450,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