diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-18 10:22:41 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-18 10:22:41 +0800 |
commit | 9ada6a6b80e0708d253e658ce5a670c93d94015b (patch) | |
tree | 0a9434faf80998cdaf7c53107ed3fe50aa2039b6 | |
parent | fc634eb41958aa8e0b57ca2ce157b563b3aed9af (diff) |
Especially on Emscripten, post is pointed by userData, to be freed later
-rw-r--r-- | client.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -97,11 +97,10 @@ void icclient_free_catalog(struct icclient_catalog *catalog) void icclient_free_response(icclient_response *response) { -#ifdef __EMSCRIPTEN__ - emscripten_fetch_close(response); -#else if (response->userData) free(response->userData); +#ifdef __EMSCRIPTEN__ + emscripten_fetch_close(response); #endif } |