diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-18 21:42:08 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-18 21:42:08 +0000 |
commit | 5fc36f981c1362d38f9c5d2aefd27316effe3340 (patch) | |
tree | 748fcf984253f081745f3df803f7081a58e8c82b /src/wallet/api | |
parent | Merge pull request #1346 (diff) | |
download | monero-5fc36f981c1362d38f9c5d2aefd27316effe3340.tar.xz |
wallet2_api: fix history leak on destruction
Diffstat (limited to 'src/wallet/api')
-rw-r--r-- | src/wallet/api/transaction_history.cpp | 3 |
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 |