1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-24 11:17:15 +01:00

avoid dangling pointers in destructor

This commit is contained in:
Jaquee 2017-02-25 00:19:37 +01:00
parent 2ca2376d45
commit 023d96bc3e
No known key found for this signature in database
GPG Key ID: 384E52B09F45DC39

View File

@ -600,7 +600,9 @@ Wallet::~Wallet()
qDebug("~Wallet: Closing wallet"); qDebug("~Wallet: Closing wallet");
delete m_history; delete m_history;
m_history = NULL;
//Monero::WalletManagerFactory::getWalletManager()->closeWallet(m_walletImpl); //Monero::WalletManagerFactory::getWalletManager()->closeWallet(m_walletImpl);
delete m_walletImpl; delete m_walletImpl;
m_walletImpl = NULL;
qDebug("m_walletImpl deleted"); qDebug("m_walletImpl deleted");
} }