aboutsummaryrefslogtreecommitdiff
path: root/src/qt/locale/bitcoin_th.ts
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2024-09-12 18:50:43 -0300
committerAva Chow <github@achow101.com>2024-09-13 11:32:55 -0400
commit674dded8756ddf9b731f3149c66dd044090e4c8e (patch)
tree98df902e5081652641686b55ccbca8c31f027a93 /src/qt/locale/bitcoin_th.ts
parentd39262e5d41e92d22e020d283ddb6e4e406647b2 (diff)
gui: fix crash when closing wallet
The crash occurs because 'WalletController::removeAndDeleteWallet' is called twice for the same wallet model: first in the GUI's button connected function 'WalletController::closeWallet', and then again when the backend emits the 'WalletModel::unload' signal. This causes the issue because 'removeAndDeleteWallet' inlines an erase(std::remove()). So, if 'std::remove' returns an iterator to the end (indicating the element wasn't found because it was already erased), the subsequent call to 'erase' leads to an undefined behavior. Github-Pull: bitcoin-core/gui#835 Rebased-From: a965f2bc07a3588f8c2b8d6a542961562e3f5d0e
Diffstat (limited to 'src/qt/locale/bitcoin_th.ts')
0 files changed, 0 insertions, 0 deletions