diff --git a/src/wayland/meta-wayland-data-device.c b/src/wayland/meta-wayland-data-device.c index daf296853..9231ac594 100644 --- a/src/wayland/meta-wayland-data-device.c +++ b/src/wayland/meta-wayland-data-device.c @@ -94,7 +94,7 @@ static struct wl_resource * create_and_send_dnd_offer (MetaWaylandDataSource *source, struct wl_resource *target) { - MetaWaylandDataOffer *offer = g_slice_new0 (MetaWaylandDataOffer); + MetaWaylandDataOffer *offer; struct wl_array *mime_types; struct wl_resource *resource; char **p;