diff options
| author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-04 22:25:52 +0800 |
|---|---|---|
| committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-04 22:25:52 +0800 |
| commit | 5f25bd6a8166258aa361b66d17cc7161d624a1ea (patch) | |
| tree | 6817afad7c714f1af3ba4b8c9c120637e133156d /catalog.cxx | |
| parent | 0f63d288930a71e9705ce1b48a5e0036a9161b52 (diff) | |
Catalog update frees the C version catalog
Diffstat (limited to 'catalog.cxx')
| -rw-r--r-- | catalog.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/catalog.cxx b/catalog.cxx index 8664cdc..709d20d 100644 --- a/catalog.cxx +++ b/catalog.cxx @@ -51,9 +51,11 @@ namespace ICClient { void Catalog::update(icclient_catalog* catalog) { - if (catalog) + if (catalog) { for (size_t i = 0; i < catalog->length; i++) addProduct(Product{catalog->products[i]}); + icclient_catalog_free(catalog); + } emit updated(); } |