From c1baa37f74bc5a2f637b70d02f96c22d1f83f26e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 8 Jan 2023 00:57:25 +0000 Subject: [PATCH] tracerutils: drop use of GSlice Part-of: --- subprojects/gstreamer/gst/gsttracerutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gstreamer/gst/gsttracerutils.c b/subprojects/gstreamer/gst/gsttracerutils.c index 07f749079c..8cbbed7859 100644 --- a/subprojects/gstreamer/gst/gsttracerutils.c +++ b/subprojects/gstreamer/gst/gsttracerutils.c @@ -155,7 +155,7 @@ _priv_gst_tracing_deinit (void) for (t_node = h_node->data; t_node; t_node = g_list_next (t_node)) { hook = (GstTracerHook *) t_node->data; gst_object_unref (hook->tracer); - g_slice_free (GstTracerHook, hook); + g_free (hook); } g_list_free (h_node->data); } @@ -169,7 +169,7 @@ gst_tracing_register_hook_id (GstTracer * tracer, GQuark detail, GCallback func) { gpointer key = GINT_TO_POINTER (detail); GList *list = g_hash_table_lookup (_priv_tracers, key); - GstTracerHook *hook = g_slice_new0 (GstTracerHook); + GstTracerHook *hook = g_new0 (GstTracerHook, 1); hook->tracer = gst_object_ref (tracer); hook->func = func;