aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-11-18 21:42:08 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-11-18 21:42:08 +0000
commit5fc36f981c1362d38f9c5d2aefd27316effe3340 (patch)
tree748fcf984253f081745f3df803f7081a58e8c82b /src
parentMerge pull request #1346 (diff)
downloadmonero-5fc36f981c1362d38f9c5d2aefd27316effe3340.tar.xz
wallet2_api: fix history leak on destruction
Diffstat (limited to 'src')
-rw-r--r--src/wallet/api/transaction_history.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/api/transaction_history.cpp b/src/wallet/api/transaction_history.cpp
index 63c4ea3cc..603739598 100644
--- a/src/wallet/api/transaction_history.cpp
+++ b/src/wallet/api/transaction_history.cpp
@@ -55,7 +55,8 @@ TransactionHistoryImpl::TransactionHistoryImpl(WalletImpl *wallet)
TransactionHistoryImpl::~TransactionHistoryImpl()
{
-
+ for (auto t : m_history)
+ delete t;
}
int TransactionHistoryImpl::count() const