diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-02 22:30:46 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-02 22:30:46 +0800 |
commit | b628ffd96ce55f2fab838b4c9626dde873370ed1 (patch) | |
tree | ac9abde3bd829af3c5c3b765d27612c0a497e6f9 /tickethistory.cxx | |
parent | 6e3ee14209963c9a7190cc76925cc736fea83218 (diff) |
Free the ticket history list after updated
still not so good design
Diffstat (limited to 'tickethistory.cxx')
-rw-r--r-- | tickethistory.cxx | 4 |
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(); } |