summaryrefslogtreecommitdiff
path: root/src/core/hook/wee-hook-url.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-09-15 08:12:02 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-09-16 13:00:03 +0200
commitf0e4494205bf2baad4a8017d6c7668ca26d24953 (patch)
treea14c480a3900858ccb75df010841d45b27126657 /src/core/hook/wee-hook-url.h
parent83dcb84ea62f3bb7479a7fad88bbccedcc2cc8a6 (diff)
downloadweechat-f0e4494205bf2baad4a8017d6c7668ca26d24953.zip
core: properly terminate thread and release memory in url hook
Diffstat (limited to 'src/core/hook/wee-hook-url.h')
-rw-r--r--src/core/hook/wee-hook-url.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hook/wee-hook-url.h b/src/core/hook/wee-hook-url.h
index 1b306659b..f2f2f62bb 100644
--- a/src/core/hook/wee-hook-url.h
+++ b/src/core/hook/wee-hook-url.h
@@ -38,6 +38,7 @@ struct t_hook_url
struct t_hashtable *options; /* URL options (see doc) */
long timeout; /* timeout (ms) (0 = no timeout) */
pthread_t thread_id; /* thread id */
+ int thread_created; /* thread created */
int thread_running; /* 1 if thread is running */
struct t_hook *hook_timer; /* timer to check if thread has ended*/
struct t_hashtable *output; /* URL transfer output data */