summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}