summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/client.c b/client.c
index b43d1c5..436ae99 100644
--- a/client.c
+++ b/client.c
@@ -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
}