forked from Public/monero-gui
avoid dangling pointers in destructor
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user