diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-02-25 00:19:37 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-02-25 00:19:37 +0100 |
| commit | 023d96bc3efc394095a6376ff9b969ac935e590e (patch) | |
| tree | 75ae5a8350598e42666d6f4cbfe979514b9fa9e3 /src/libwalletqt/Wallet.cpp | |
| parent | 2ca2376d45224f02bba54059b219abf4de679b36 (diff) | |
| download | monzero-gui-023d96bc3efc394095a6376ff9b969ac935e590e.tar.gz monzero-gui-023d96bc3efc394095a6376ff9b969ac935e590e.tar.xz monzero-gui-023d96bc3efc394095a6376ff9b969ac935e590e.zip | |
avoid dangling pointers in destructor
Diffstat (limited to 'src/libwalletqt/Wallet.cpp')
| -rw-r--r-- | src/libwalletqt/Wallet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 8913d4c3..abc044b5 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -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"); } |
