summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland/meta-wayland-surface.c')
-rw-r--r--src/wayland/meta-wayland-surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index 0f0c55b1c..66275055f 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -957,7 +957,7 @@ destroy_frame_callback (struct wl_resource *callback_resource)
wl_resource_get_user_data (callback_resource);
wl_list_remove (&callback->link);
- g_slice_free (MetaWaylandFrameCallback, callback);
+ g_free (callback);
}
static void
@@ -973,7 +973,7 @@ wl_surface_frame (struct wl_client *client,
if (!surface)
return;
- callback = g_slice_new0 (MetaWaylandFrameCallback);
+ callback = g_new0 (MetaWaylandFrameCallback, 1);
callback->surface = surface;
callback->resource = wl_resource_create (client,
&wl_callback_interface,