diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2021-05-03 16:58:01 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2021-05-03 18:42:43 -0400 |
commit | 80c43a546bfe9b5223700a18a30349c16080bc03 (patch) | |
tree | be782806a7ed0f435116e81b6205b3a9659c1813 /socket | |
parent | caf9f1d8b1d4675c8c88f8f6fa04d3ff5e27f09a (diff) | |
download | libnice-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.c | 2 |
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); |