Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
3d5cf929
Commit
3d5cf929
authored
Jan 19, 2011
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure that we revert/free the candidates gathered before an error occured if we can't gather
parent
5d3c509b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
agent/agent.c
agent/agent.c
+14
-0
No files found.
agent/agent.c
View file @
3d5cf929
...
...
@@ -1871,6 +1871,20 @@ nice_agent_gather_candidates (
nice_address_free
(
i
->
data
);
g_slist_free
(
local_addresses
);
if
(
ret
==
FALSE
)
{
priv_free_upnp
(
agent
);
for
(
n
=
0
;
n
<
stream
->
n_components
;
n
++
)
{
Component
*
component
=
stream_find_component_by_id
(
stream
,
n
+
1
);
for
(
i
=
component
->
local_candidates
;
i
;
i
=
i
->
next
)
{
NiceCandidate
*
candidate
=
i
->
data
;
nice_candidate_free
(
candidate
);
}
g_slist_free
(
component
->
local_candidates
);
component
->
local_candidates
=
NULL
;
}
discovery_prune_stream
(
agent
,
stream_id
);
}
agent_unlock
();
return
ret
;
...
...
Write
Preview
Markdown
is supported
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