summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-27 21:47:08 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-27 21:47:08 +0800
commit62d23b4337b83d2a2933c4fa4233906030e09fb6 (patch)
treeeb655530fb26db97f9397d38cdf13fd4f7c197ec
parent973602595e4fa6c069839dc9a4ff88a00a8d8fdf (diff)
Freeing the catalog should be the memory allocator's responsibility
-rw-r--r--catalog.cxx4
m---------libicclient10
2 files changed, 6 insertions, 8 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();
}
diff --git a/libicclient b/libicclient
-Subproject de16cb072e348fed875232c58cee7dfee5d9766
+Subproject bf59ffd31aeb3a328a489205ecbc45c194cfa5d