avoid dangling pointers in destructor

pull/2/head
Jaquee 7 years ago
parent 2ca2376d45
commit 023d96bc3e
No known key found for this signature in database
GPG Key ID: 384E52B09F45DC39

@ -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");
}