diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-20 11:21:57 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-20 11:21:57 +0800 |
commit | 6e2b543c8e7ecf9986aa82641b4ed999755b03bd (patch) | |
tree | 8fac6a35516663635345cc3c5a4555b5dc29c584 | |
parent | a94e13144f0a971d14d7abef8edf98a0eb9c707e (diff) |
Add image large to product
-rw-r--r-- | interchange.c | 2 | ||||
-rw-r--r-- | interchange.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/interchange.c b/interchange.c index 8a70bbb..223e3c1 100644 --- a/interchange.c +++ b/interchange.c @@ -74,6 +74,8 @@ void interchange_product(const char *sku, void (*handler)(interchange_response * void interchange_clear_product(struct interchange_product *product) { + if (product->image_large) + free(product->image_large); if (product->crosssell) for (size_t i = 0; i < product->crosssell->length; i++) free(product->crosssell->skus[i]); diff --git a/interchange.h b/interchange.h index ff2c9c4..2c7be52 100644 --- a/interchange.h +++ b/interchange.h @@ -19,6 +19,7 @@ struct interchange_product { size_t length; char *skus[]; } *crosssell; + char *image_large; }; struct interchange_catalog { |