diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 08:55:04 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 08:55:04 +0800 |
commit | 8f806e54b24ba848c5be43e8e20966c061daa459 (patch) | |
tree | e7203124d1d636b6941f142312c40a045445797f | |
parent | 6013f0be4eca1aebb4b7c6b2626e033883be22ab (diff) |
Fix changed function
-rw-r--r-- | ord.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -41,7 +41,7 @@ void icclient_ord_order(const char *sku, const icclient_catalog *catalog, icclient_product *product = *(icclient_product **)bsearch(&key_product , products, catalog->length, sizeof(icclient_product *) , prodcmp); - icclient_product_free(key_product); + icclient_free_product(key_product); struct icclient_ord_order *order = *orderptr; icclient_ord_item *item = NULL; @@ -107,5 +107,5 @@ void icclient_ord_checkout(struct icclient_ord_order *order, void icclient_ord_free(struct icclient_ord_order *order) { for (size_t i = 0; i < order->nitems; i++) - icclient_product_free(order->items[i]->product); + icclient_free_product(order->items[i]->product); } |