From 9f88dba1622a02b44f49fc0079b7810e588347d3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 3 Mar 2023 06:48:49 -0500 Subject: gsk: Stop using g_slice --- gsk/gskprofiler.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gsk/gskprofiler.c') diff --git a/gsk/gskprofiler.c b/gsk/gskprofiler.c index e9ef91af93..a34844eb70 100644 --- a/gsk/gskprofiler.c +++ b/gsk/gskprofiler.c @@ -53,8 +53,7 @@ named_counter_free (gpointer data) return; g_free (counter->description); - - g_slice_free (NamedCounter, counter); + g_free (counter); } static void @@ -66,8 +65,7 @@ named_timer_free (gpointer data) return; g_free (timer->description); - - g_slice_free (NamedTimer, timer); + g_free (timer); } static void @@ -109,7 +107,7 @@ named_counter_new (GQuark id, const char *description, gboolean can_reset) { - NamedCounter *res = g_slice_new0 (NamedCounter); + NamedCounter *res = g_new0 (NamedCounter, 1); res->id = id; res->description = g_strdup (description); @@ -156,7 +154,7 @@ named_timer_new (GQuark id, gboolean invert, gboolean can_reset) { - NamedTimer *res = g_slice_new0 (NamedTimer); + NamedTimer *res = g_new0 (NamedTimer, 1); res->id = id; res->description = g_strdup (description); -- cgit v1.2.1