[farsight2/master] Allocate UdpPort using gslice
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:22:33 PST 2008
---
transmitters/rawudp/fs-rawudp-transmitter.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/transmitters/rawudp/fs-rawudp-transmitter.c b/transmitters/rawudp/fs-rawudp-transmitter.c
index 3141c13..6b3fa99 100644
--- a/transmitters/rawudp/fs-rawudp-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-transmitter.c
@@ -728,7 +728,7 @@ fs_rawudp_transmitter_get_udpport (FsRawUdpTransmitter *trans,
GST_DEBUG ("Make new UdpPort for component %u requesting %s:%u", component_id,
requested_ip ? requested_ip : "ANY", requested_port);
- udpport = g_new0 (UdpPort, 1);
+ udpport = g_slice_new0 (UdpPort);
udpport->refcount = 1;
udpport->requested_ip = g_strdup (requested_ip);
@@ -833,7 +833,7 @@ fs_rawudp_transmitter_put_udpport (FsRawUdpTransmitter *trans,
close (udpport->fd);
g_free (udpport->requested_ip);
- g_free (udpport);
+ g_slice_free (UdpPort, udpport);
}
void
--
1.5.6.5
More information about the farsight-commits
mailing list