diff options
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(); } |