summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHodong <hodong@yozmos.com>2022-01-15 02:32:04 +0900
committerHodong <hodong@yozmos.com>2022-01-15 02:32:04 +0900
commitddafdba11f6919e6fcf977c09c78b06f94de47aa (patch)
treea54e5930a51902439b0fdec77be5f98887450509
parent43fbf03e549bf6da8d1d8522e0ceddc4d49c37c6 (diff)
downloadxcb-libxcb-ddafdba11f6919e6fcf977c09c78b06f94de47aa.tar.gz
Fix a memory leak
Signed-off-by: Hodong <hodong@yozmos.com>
-rw-r--r--src/xcb_out.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xcb_out.c b/src/xcb_out.c
index 8ffc03f..a4fe823 100644
--- a/src/xcb_out.c
+++ b/src/xcb_out.c
@@ -458,8 +458,9 @@ int _xcb_out_init(_xcb_out *out)
void _xcb_out_destroy(_xcb_out *out)
{
- pthread_cond_destroy(&out->cond);
pthread_mutex_destroy(&out->reqlenlock);
+ pthread_cond_destroy(&out->cond);
+ pthread_cond_destroy(&out->socket_cond);
}
int _xcb_out_send(xcb_connection_t *c, struct iovec *vector, int count)