From d78f9f5e70d4b380cbcc1586c245b9f965dcc54a Mon Sep 17 00:00:00 2001 From: Jaquee Date: Sun, 6 Aug 2017 16:44:32 +0200 Subject: [PATCH] delete addressbook in wallet destructor --- src/libwalletqt/Wallet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 409d3d1a..e5ffef82 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -646,6 +646,8 @@ Wallet::Wallet(Monero::Wallet *w, QObject *parent) Wallet::~Wallet() { qDebug("~Wallet: Closing wallet"); + delete m_addressBook; + m_addressBook = NULL; delete m_history; m_history = NULL;