[Nice] [nice/master] use nice_address_new and nice_address_free instead of g_new0 and g_free
Youness Alaoui
youness.alaoui at collabora.co.uk
Wed Nov 12 16:59:01 PST 2008
---
socket/udp-turn.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/socket/udp-turn.c b/socket/udp-turn.c
index de35acc..736bd9e 100644
--- a/socket/udp-turn.c
+++ b/socket/udp-turn.c
@@ -99,7 +99,7 @@ priv_process_pending_bindings (turn_priv *priv)
NiceAddress *peer = priv->pending_bindings->data;
ret = priv_add_channel_binding (priv, 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)
nice_address_copy_to_sockaddr (peer, (struct sockaddr *)&sa);
if (priv->current_binding) {
- NiceAddress * pending= g_new0 (NiceAddress, 1);
+ NiceAddress * pending= nice_address_new ();
*pending = *peer;
priv->pending_bindings = g_list_append (priv->pending_bindings, pending);
return FALSE;
--
1.5.6.5
More information about the Nice
mailing list