commit 56ce078e30320f0b59f49e0f1d0ba62b4b23be3a
parent e714497143b635564ea1df807ee52bc6bc0d0643
Author: Florian Dold <dold@taler.net>
Date: Mon, 10 Aug 2026 01:21:09 +0200
missing define
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/taler_wallet_core_lib.c b/taler_wallet_core_lib.c
@@ -423,9 +423,11 @@ TALER_WALLET_destroy(struct TALER_WALLET_Instance *twi)
if (have_thread) {
pthread_join(thread, NULL);
}
+#ifndef NO_CURL
if (twi->owns_http_impl) {
js_curl_http_client_destroy(twi->http_impl);
}
+#endif
pthread_cond_destroy(&twi->state_changed);
pthread_mutex_destroy(&twi->handle_mutex);
free(twi);
@@ -528,9 +530,11 @@ TALER_set_http_client_implementation(struct TALER_WALLET_Instance *twi,
pthread_mutex_unlock(&twi->handle_mutex);
return;
}
+#ifndef NO_CURL
if (twi->owns_http_impl) {
js_curl_http_client_destroy(twi->http_impl);
}
+#endif
twi->http_impl = impl;
twi->owns_http_impl = 0;
pthread_mutex_unlock(&twi->handle_mutex);