From 6f93baf42057ae211f5283ee78fb56a663f4acd2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 3 Mar 2023 06:31:58 -0500 Subject: [PATCH] win32: Stop using g_slice --- gdk/win32/gdkdrag-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/win32/gdkdrag-win32.c b/gdk/win32/gdkdrag-win32.c index 679d80db6f..bb773bde0a 100644 --- a/gdk/win32/gdkdrag-win32.c +++ b/gdk/win32/gdkdrag-win32.c @@ -1836,7 +1836,7 @@ static void gdk_drag_anim_destroy (GdkDragAnim *anim) { g_object_unref (anim->drag); - g_slice_free (GdkDragAnim, anim); + g_free (anim); } static gboolean @@ -1936,7 +1936,7 @@ gdk_win32_drag_drop_done (GdkDrag *drag, cairo_surface_destroy (surface); */ - anim = g_slice_new0 (GdkDragAnim); + anim = g_new0 (GdkDragAnim, 1); g_set_object (&anim->drag, drag_win32); anim->frame_clock = gdk_surface_get_frame_clock (drag_win32->drag_surface); anim->start_time = gdk_frame_clock_get_frame_time (anim->frame_clock);