diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-20 11:41:01 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-20 11:41:01 +0800 |
commit | 63b109ca1c1c54319d164ddcfa5760aa66558ccd (patch) | |
tree | 6904b1c8fa0a4109b0734ebc6067f5aa9af22490 /client.c | |
parent | fdb6565f877a33aa95afc24d937650095cbd6e4d (diff) |
Move catalog freeing implementation to catalog's own implementation
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -167,14 +167,6 @@ void icclient_page(const char *path, size_t (*handler)(void *, size_t, size_t request(handler, (void *)dataptr, NULL, "%s", path); } -void icclient_freecatalog(icclient_catalog *catalog) -{ - for (size_t i = 0; i < catalog->length; i++) - icclient_product_free(catalog->products[i]); - free(catalog); - catalog = NULL; -} - void icclient_cleanup() { if (curl) { |