mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
avoid dangling pointers in destructor
This commit is contained in:
parent
2ca2376d45
commit
023d96bc3e
1 changed files with 2 additions and 0 deletions
|
@ -600,7 +600,9 @@ Wallet::~Wallet()
|
|||
qDebug("~Wallet: Closing wallet");
|
||||
|
||||
delete m_history;
|
||||
m_history = NULL;
|
||||
//Monero::WalletManagerFactory::getWalletManager()->closeWallet(m_walletImpl);
|
||||
delete m_walletImpl;
|
||||
m_walletImpl = NULL;
|
||||
qDebug("m_walletImpl deleted");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue