[farsight2/master] Use slice for nicegststream
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:36 PST 2008
---
transmitters/nice/fs-nice-transmitter.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/transmitters/nice/fs-nice-transmitter.c b/transmitters/nice/fs-nice-transmitter.c
index 53ad764..03d4865 100644
--- a/transmitters/nice/fs-nice-transmitter.c
+++ b/transmitters/nice/fs-nice-transmitter.c
@@ -621,7 +621,7 @@ fs_nice_transmitter_add_gst_stream (FsNiceTransmitter *self,
guint c;
NiceGstStream *ns = NULL;
- ns = g_new0 (NiceGstStream, 1);
+ ns = g_slice_new0 (NiceGstStream);
ns->nicesrcs = g_new0 (GstElement *, self->components + 1);
ns->nicesinks = g_new0 (GstElement *, self->components + 1);
ns->requested_tee_pads = g_new0 (GstPad *, self->components + 1);
@@ -721,5 +721,5 @@ fs_nice_transmitter_free_gst_stream (FsNiceTransmitter *self,
g_free (ns->requested_tee_pads);
g_free (ns->requested_funnel_pads);
g_free (ns->probe_ids);
- g_free (ns);
+ g_slice_free (NiceGstStream, ns);
}
--
1.5.6.5
More information about the farsight-commits
mailing list