From 80e882d26605ce71bb5d807bb713e0b1adc42d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 8 Jan 2023 18:47:24 +0000 Subject: [PATCH] netsim: drop use of GSlice Part-of: --- subprojects/gst-plugins-bad/gst/netsim/gstnetsim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst/netsim/gstnetsim.c b/subprojects/gst-plugins-bad/gst/netsim/gstnetsim.c index c917de3b72..55853b8fd0 100644 --- a/subprojects/gst-plugins-bad/gst/netsim/gstnetsim.c +++ b/subprojects/gst-plugins-bad/gst/netsim/gstnetsim.c @@ -216,7 +216,7 @@ typedef struct static inline PushBufferCtx * push_buffer_ctx_new (GstPad * pad, GstBuffer * buf) { - PushBufferCtx *ctx = g_slice_new (PushBufferCtx); + PushBufferCtx *ctx = g_new (PushBufferCtx, 1); ctx->pad = gst_object_ref (pad); ctx->buf = gst_buffer_ref (buf); return ctx; @@ -228,7 +228,7 @@ push_buffer_ctx_free (PushBufferCtx * ctx) if (G_LIKELY (ctx != NULL)) { gst_buffer_unref (ctx->buf); gst_object_unref (ctx->pad); - g_slice_free (PushBufferCtx, ctx); + g_free (ctx); } }