From: Jan Schmidt Date: Tue, 9 Jun 2009 10:13:04 +0000 (+0100) Subject: multiqueue: Use the slice allocator for MultiQueueItems X-Git-Tag: RELEASE-0.10.24~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e2695f5946b44a16d653968463efbeb709c6bbd;p=platform%2Fupstream%2Fgstreamer.git multiqueue: Use the slice allocator for MultiQueueItems --- diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c index 30f9865..930d7ed 100644 --- a/plugins/elements/gstmultiqueue.c +++ b/plugins/elements/gstmultiqueue.c @@ -795,7 +795,7 @@ gst_multi_queue_item_destroy (GstMultiQueueItem * item) { if (item->object) gst_mini_object_unref (item->object); - g_free (item); + g_slice_free (GstMultiQueueItem, item); } /* takes ownership of passed mini object! */ @@ -804,7 +804,7 @@ gst_multi_queue_item_new (GstMiniObject * object, guint32 curid) { GstMultiQueueItem *item; - item = g_new (GstMultiQueueItem, 1); + item = g_slice_new (GstMultiQueueItem); item->object = object; item->destroy = (GDestroyNotify) gst_multi_queue_item_destroy; item->posid = curid;