diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-19 22:00:50 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-19 22:00:50 +0200 |
| commit | 82f783595f654b62ce57a7cfb537d23efce7affc (patch) | |
| tree | 32806d5e2a54c7c47459124c1df15b7e47c8d71b /src/ui | |
| parent | 3e85a8e6db1a9c9a7fcf7974a1a0307b2cb145bd (diff) | |
fix r/w mem leaks
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/ui_expenses.cpp | 1 | ||||
| -rw-r--r-- | src/ui/ui_invoices.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/ui_expenses.cpp b/src/ui/ui_expenses.cpp index 6aa6e96..560eb90 100644 --- a/src/ui/ui_expenses.cpp +++ b/src/ui/ui_expenses.cpp @@ -40,6 +40,7 @@ void draw_invoice_items_form(invoice* invoice, bool outgoing = true); void ui::destroy_expenses() { + administration::invoice_destroy(&active_invoice); memops::unalloc(invoice_items_buffer); } diff --git a/src/ui/ui_invoices.cpp b/src/ui/ui_invoices.cpp index 277ce46..18acc59 100644 --- a/src/ui/ui_invoices.cpp +++ b/src/ui/ui_invoices.cpp @@ -37,6 +37,7 @@ void draw_addressee_form_ex(delivery_info* buffer, bool viewing_only = false); void ui::destroy_invoices() { + administration::invoice_destroy(&active_invoice); memops::unalloc(invoice_items_buffer); } |
