summaryrefslogtreecommitdiff
path: root/socket
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2021-05-03 16:58:01 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2021-05-03 18:42:43 -0400
commit80c43a546bfe9b5223700a18a30349c16080bc03 (patch)
treebe782806a7ed0f435116e81b6205b3a9659c1813 /socket
parentcaf9f1d8b1d4675c8c88f8f6fa04d3ff5e27f09a (diff)
downloadlibnice-80c43a546bfe9b5223700a18a30349c16080bc03.tar.gz
udp-turn: Remove request before freeing it
As removing the request from the queue looks into the SendRequest, one needs to unqueue it before freeing it.
Diffstat (limited to 'socket')
-rw-r--r--socket/udp-turn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket/udp-turn.c b/socket/udp-turn.c
index 95df738..3c2e718 100644
--- a/socket/udp-turn.c
+++ b/socket/udp-turn.c
@@ -1099,8 +1099,8 @@ priv_forget_send_request_timeout (gpointer pointer)
return G_SOURCE_REMOVE;
}
- send_request_free (req);
g_queue_remove (req->priv->send_requests, req);
+ send_request_free (req);
g_mutex_unlock (&mutex);