mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
multiqueue: Use the slice allocator for MultiQueueItems
This commit is contained in:
parent
7e9105bca0
commit
2e2695f594
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue