summaryrefslogtreecommitdiff
path: root/client.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'client.cxx')
-rw-r--r--client.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/client.cxx b/client.cxx
index c931191..1f64e80 100644
--- a/client.cxx
+++ b/client.cxx
@@ -25,6 +25,9 @@ void Client::logIn(QString const& name, QString const& password)
pwCopy = (char*)malloc(strlen(pwData) + 1);
strcpy(pwCopy, pwData);
rtclient_login(nCopy, pwCopy, [](rtclient_response* response) {
+#ifdef __EMSCRIPTEN__
+ free(response->userData);
+#endif
rtclient_free_response(response);
client->emitLoggedIn(QString{nCopy});
free(nCopy);