projects
/
platform
/
upstream
/
libnice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caf9f1d
)
udp-turn: Remove request before freeing it
author
Olivier Crête
<olivier.crete@collabora.com>
Mon, 3 May 2021 20:58:01 +0000
(16:58 -0400)
committer
Olivier Crête
<olivier.crete@collabora.com>
Mon, 3 May 2021 22:42:43 +0000
(18:42 -0400)
As removing the request from the queue looks into the SendRequest, one
needs to unqueue it before freeing it.
socket/udp-turn.c
patch
|
blob
|
history
diff --git
a/socket/udp-turn.c
b/socket/udp-turn.c
index
95df738
..
3c2e718
100644
(file)
--- 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);