aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-10-17 23:27:23 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-10-17 23:27:23 -0500
commit1aad001d96aaaf6a8d68cf8042475d1800cd3c07 (patch)
tree0c392f1f4828adf66c8014eac4173c323cd55178 /src
parentMerge pull request #7861 (diff)
parentUB: virtual method in destructor of WalletImpl v0.17 (diff)
downloadmonero-1aad001d96aaaf6a8d68cf8042475d1800cd3c07.tar.xz
Merge pull request #7868
36527c0 UB: virtual method in destructor of WalletImpl v0.17 (mj-xmr)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/api/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp
index f019a38a8..92ab55a50 100644
--- a/src/wallet/api/wallet.cpp
+++ b/src/wallet/api/wallet.cpp
@@ -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