diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-03-03 06:41:41 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-03-14 14:56:42 -0400 |
commit | 98ff6c0d4d18b2b5e58f99d86c8a8af0db9b4a06 (patch) | |
tree | 07cb585684fcfe4d6d01f181e74f58849adfd0d5 /gdk/gdkdisplay.c | |
parent | 15d73a1adbec6c77878d6b18583130356b3b19b6 (diff) | |
download | gtk+-98ff6c0d4d18b2b5e58f99d86c8a8af0db9b4a06.tar.gz |
gdk: Stop using g_slice
Diffstat (limited to 'gdk/gdkdisplay.c')
-rw-r--r-- | gdk/gdkdisplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c index bebe26f38c..32ad4aee7a 100644 --- a/gdk/gdkdisplay.c +++ b/gdk/gdkdisplay.c @@ -322,7 +322,7 @@ static void free_pointer_info (GdkPointerSurfaceInfo *info) { g_clear_object (&info->surface_under_pointer); - g_slice_free (GdkPointerSurfaceInfo, info); + g_free (info); } static void @@ -834,7 +834,7 @@ _gdk_display_get_pointer_info (GdkDisplay *display, if (G_UNLIKELY (!info)) { - info = g_slice_new0 (GdkPointerSurfaceInfo); + info = g_new0 (GdkPointerSurfaceInfo, 1); g_hash_table_insert (display->pointers_info, device, info); } |