Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
bbe94e8f
Commit
bbe94e8f
authored
Jul 31, 2012
by
Ghislain MARY
Browse files
Check the session parameter of the ice_session_destroy() function.
parent
d81819dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
src/ice.c
src/ice.c
+10
-8
No files found.
src/ice.c
View file @
bbe94e8f
...
...
@@ -199,14 +199,16 @@ IceSession * ice_session_new(void)
void
ice_session_destroy
(
IceSession
*
session
)
{
ms_list_for_each
(
session
->
streams
,
(
void
(
*
)(
void
*
))
ice_check_list_destroy
);
if
(
session
->
ticker
)
ms_ticker_destroy
(
session
->
ticker
);
if
(
session
->
local_ufrag
)
ms_free
(
session
->
local_ufrag
);
if
(
session
->
local_pwd
)
ms_free
(
session
->
local_pwd
);
if
(
session
->
remote_ufrag
)
ms_free
(
session
->
remote_ufrag
);
if
(
session
->
remote_pwd
)
ms_free
(
session
->
remote_pwd
);
ms_list_free
(
session
->
streams
);
ms_free
(
session
);
if
(
session
!=
NULL
)
{
ms_list_for_each
(
session
->
streams
,
(
void
(
*
)(
void
*
))
ice_check_list_destroy
);
if
(
session
->
ticker
)
ms_ticker_destroy
(
session
->
ticker
);
if
(
session
->
local_ufrag
)
ms_free
(
session
->
local_ufrag
);
if
(
session
->
local_pwd
)
ms_free
(
session
->
local_pwd
);
if
(
session
->
remote_ufrag
)
ms_free
(
session
->
remote_ufrag
);
if
(
session
->
remote_pwd
)
ms_free
(
session
->
remote_pwd
);
ms_list_free
(
session
->
streams
);
ms_free
(
session
);
}
}
...
...
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