mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-21 09:32:39 +02:00
gui: Fix WalletController deletion
The wallet controller instanced must be deleted after the window instance since it is used there.
This commit is contained in:
parent
2fbf6a57d2
commit
60e190ceb3
@ -218,6 +218,8 @@ BitcoinApplication::~BitcoinApplication()
|
||||
#ifdef ENABLE_WALLET
|
||||
delete paymentServer;
|
||||
paymentServer = nullptr;
|
||||
delete m_wallet_controller;
|
||||
m_wallet_controller = nullptr;
|
||||
#endif
|
||||
delete optionsModel;
|
||||
optionsModel = nullptr;
|
||||
@ -310,10 +312,6 @@ void BitcoinApplication::requestShutdown()
|
||||
window->setClientModel(nullptr);
|
||||
pollShutdownTimer->stop();
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
delete m_wallet_controller;
|
||||
m_wallet_controller = nullptr;
|
||||
#endif
|
||||
delete clientModel;
|
||||
clientModel = nullptr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user