From 8973ba4703f11b704456701ae3cf61696dcd1aaa Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 29 May 2019 16:21:07 -0400 Subject: [PATCH] cleanup --- src/wallet/MoneroWallet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index 49d2829..a5fcfdd 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -36,13 +36,14 @@ namespace monero { void onSyncStart(uint64_t startHeight, MoneroSyncListener* syncListener) { syncStartHeight = new uint64_t(startHeight); - cout << "Set start height " << startHeight << " vs " << *syncStartHeight << endl; this->syncListener = syncListener; updateListening(); } void onSyncEnd() { - syncStartHeight = nullptr; // TODO: delete first? yes. + delete syncStartHeight; + syncStartHeight = nullptr; + delete syncEndHeight; syncEndHeight = nullptr; syncListener = nullptr; updateListening();