summaryrefslogtreecommitdiff
path: root/interchange.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-20 11:21:57 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-20 11:21:57 +0800
commit6e2b543c8e7ecf9986aa82641b4ed999755b03bd (patch)
tree8fac6a35516663635345cc3c5a4555b5dc29c584 /interchange.c
parenta94e13144f0a971d14d7abef8edf98a0eb9c707e (diff)
Add image large to product
Diffstat (limited to 'interchange.c')
-rw-r--r--interchange.c2
1 files changed, 2 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]);