From 5fc36f981c1362d38f9c5d2aefd27316effe3340 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 18 Nov 2016 21:42:08 +0000 Subject: wallet2_api: fix history leak on destruction --- src/wallet/api/transaction_history.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3