aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-11-24 12:54:25 +0200
committerRiccardo Spagni <ric@spagni.net>2016-11-24 12:54:25 +0200
commit25369df4d80456fa36c5818d549089da45c3c27d (patch)
tree0c93f5bca85efbec3ab317aad0555186dde638b0 /src/wallet/api
parentMerge pull request #1356 (diff)
parentwallet2_api: fix history leak on destruction (diff)
downloadmonero-25369df4d80456fa36c5818d549089da45c3c27d.tar.xz
Merge pull request #1357
5fc36f9 wallet2_api: fix history leak on destruction (moneromooo-monero)
Diffstat (limited to 'src/wallet/api')
-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