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
e20deca8
Commit
e20deca8
authored
Feb 13, 2007
by
Dafydd Harries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
free unused candidates safely
darcs-hash:20070213122313-c9803-902bedac1524d491e2c071e496a620120ed130f6.gz
parent
9cf25794
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
agent/agent.c
agent/agent.c
+6
-7
No files found.
agent/agent.c
View file @
e20deca8
...
...
@@ -277,20 +277,19 @@ nice_agent_remove_stream (
{
GSList
*
i
;
GSList
*
candidates
=
agent
->
local_candidates
;
GSList
*
old_list
=
agent
->
local_candidates
;
GSList
*
new_list
=
NULL
;
for
(
i
=
agent
->
local_candidates
;
i
;
i
=
i
->
next
)
{
NiceCandidate
*
candidate
=
i
->
data
;
if
(
candidate
->
stream_id
==
stream_id
)
{
candidates
=
g_slist_remove
(
candidates
,
candidate
);
nice_candidate_free
(
candidate
);
}
if
(
candidate
->
stream_id
!=
stream_id
)
new_list
=
g_slist_append
(
new_list
,
candidate
);
}
agent
->
local_candidates
=
candidates
;
agent
->
local_candidates
=
new_list
;
g_slist_free
(
old_list
);
}
/* remove stream */
...
...
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