multiqueue: Use the slice allocator for MultiQueueItems

This commit is contained in:
Jan Schmidt 2009-06-09 11:13:04 +01:00
parent 7e9105bca0
commit 2e2695f594

View file

@ -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;