diff options
| author | mj-xmr <mjxmr@protonmail.com> | 2021-08-16 10:11:05 +0200 |
|---|---|---|
| committer | mj-xmr <mjxmr@protonmail.com> | 2021-09-07 14:24:53 +0200 |
| commit | eed7e79c04354b3313445913211b429a0f488426 (patch) | |
| tree | 817de4a54583035a02d548245cf5cf2a6ff40413 /src/wallet/api/wallet.cpp | |
| parent | 8fde011dbeb56ab92a909710567b964186671247 (diff) | |
| download | monzero-core-eed7e79c04354b3313445913211b429a0f488426.tar.gz monzero-core-eed7e79c04354b3313445913211b429a0f488426.tar.xz monzero-core-eed7e79c04354b3313445913211b429a0f488426.zip | |
UB: Not calling virtual method in destructor of WalletImpl
Diffstat (limited to 'src/wallet/api/wallet.cpp')
| -rw-r--r-- | src/wallet/api/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 0afbda705..989061250 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -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 |
