summaryrefslogtreecommitdiff
path: root/catalog.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-28 15:17:10 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-28 15:17:10 +0800
commit7f7cb0eaac8f4030a2eb7d77182f2d2e20373278 (patch)
tree98dc2a70514b221b1b4d9ab2026b4400f212da2e /catalog.cxx
parent9beee6344f95d487c30e6bcdafaf9596716236c0 (diff)
Revert "Revert "Freeing the catalog should be the memory allocator's responsibility""
This reverts commit 9beee6344f95d487c30e6bcdafaf9596716236c0.
Diffstat (limited to 'catalog.cxx')
-rw-r--r--catalog.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/catalog.cxx b/catalog.cxx
index 17702bc..8664cdc 100644
--- a/catalog.cxx
+++ b/catalog.cxx
@@ -51,11 +51,9 @@ 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_product_freecatalog(catalog);
- }
emit updated();
}