summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tickethistory.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/tickethistory.cxx b/tickethistory.cxx
index d1af392..4243d7c 100644
--- a/tickethistory.cxx
+++ b/tickethistory.cxx
@@ -78,10 +78,12 @@ namespace RTClient {
void TicketHistoryList::update(rtclient_ticket_history_list* list)
{
- if (list)
+ if (list) {
for (size_t i = 0; i < list->length; i++)
addTicketHistory
(TicketHistory{list->histories[i]});
+ rtclient_ticket_history_list_free(list);
+ }
emit updated();
}