Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libnice
libnice
Commits
8d148c97
Commit
8d148c97
authored
Jan 19, 2011
by
Youness Alaoui
Browse files
Clear the sockets when removing the candidates
parent
36b2ac01
Changes
1
Hide whitespace changes
Inline
Side-by-side
agent/agent.c
View file @
8d148c97
...
...
@@ -1875,12 +1875,21 @@ nice_agent_gather_candidates (
priv_free_upnp
(
agent
);
for
(
n
=
0
;
n
<
stream
->
n_components
;
n
++
)
{
Component
*
component
=
stream_find_component_by_id
(
stream
,
n
+
1
);
priv_detach_stream_component
(
stream
,
component
);
for
(
i
=
component
->
local_candidates
;
i
;
i
=
i
->
next
)
{
NiceCandidate
*
candidate
=
i
->
data
;
nice_candidate_free
(
candidate
);
}
for
(
i
=
component
->
sockets
;
i
;
i
=
i
->
next
)
{
NiceSocket
*
udpsocket
=
i
->
data
;
nice_socket_free
(
udpsocket
);
}
g_slist_free
(
component
->
local_candidates
);
component
->
local_candidates
=
NULL
;
g_slist_free
(
component
->
sockets
);
component
->
sockets
=
NULL
;
}
discovery_prune_stream
(
agent
,
stream_id
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment