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
580afc6c
Commit
580afc6c
authored
Nov 12, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use nice_address_new and nice_address_free instead of g_new0 and g_free
parent
e610fb4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
socket/udp-turn.c
socket/udp-turn.c
+2
-2
No files found.
socket/udp-turn.c
View file @
580afc6c
...
@@ -99,7 +99,7 @@ priv_process_pending_bindings (turn_priv *priv)
...
@@ -99,7 +99,7 @@ priv_process_pending_bindings (turn_priv *priv)
NiceAddress
*
peer
=
priv
->
pending_bindings
->
data
;
NiceAddress
*
peer
=
priv
->
pending_bindings
->
data
;
ret
=
priv_add_channel_binding
(
priv
,
peer
);
ret
=
priv_add_channel_binding
(
priv
,
peer
);
priv
->
pending_bindings
=
g_list_remove
(
priv
->
pending_bindings
,
peer
);
priv
->
pending_bindings
=
g_list_remove
(
priv
->
pending_bindings
,
peer
);
g
_free
(
peer
);
nice_address
_free
(
peer
);
}
}
}
}
...
@@ -269,7 +269,7 @@ priv_add_channel_binding (turn_priv *priv, NiceAddress *peer)
...
@@ -269,7 +269,7 @@ priv_add_channel_binding (turn_priv *priv, NiceAddress *peer)
nice_address_copy_to_sockaddr
(
peer
,
(
struct
sockaddr
*
)
&
sa
);
nice_address_copy_to_sockaddr
(
peer
,
(
struct
sockaddr
*
)
&
sa
);
if
(
priv
->
current_binding
)
{
if
(
priv
->
current_binding
)
{
NiceAddress
*
pending
=
g_new0
(
NiceAddress
,
1
);
NiceAddress
*
pending
=
nice_address_new
(
);
*
pending
=
*
peer
;
*
pending
=
*
peer
;
priv
->
pending_bindings
=
g_list_append
(
priv
->
pending_bindings
,
pending
);
priv
->
pending_bindings
=
g_list_append
(
priv
->
pending_bindings
,
pending
);
return
FALSE
;
return
FALSE
;
...
...
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