summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-06-09 11:13:04 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-06-11 10:34:28 +0100
commit2e2695f5946b44a16d653968463efbeb709c6bbd (patch)
tree22a32a3aa6bce2c32d14b04f9bd00af2cb2085dc /plugins
parent7e9105bca0dc643841376f6c06f2e661ad4eaa2d (diff)
multiqueue: Use the slice allocator for MultiQueueItems
Diffstat (limited to 'plugins')
-rw-r--r--plugins/elements/gstmultiqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c
index 30f9865329..930d7ed26e 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;