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/transaction_history.cpp | |
| parent | dbf2ab56c54b8be3d0f704f067c9bff79e90ed7e (diff) | |
| download | monzero-core-5fc36f981c1362d38f9c5d2aefd27316effe3340.tar.gz monzero-core-5fc36f981c1362d38f9c5d2aefd27316effe3340.tar.xz monzero-core-5fc36f981c1362d38f9c5d2aefd27316effe3340.zip | |
wallet2_api: fix history leak on destruction
Diffstat (limited to 'src/wallet/api/transaction_history.cpp')
| -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 |
