summaryrefslogtreecommitdiff
path: root/src/wayland-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland-server.c')
-rw-r--r--src/wayland-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland-server.c b/src/wayland-server.c
index a6cd88d..33bedf7 100644
--- a/src/wayland-server.c
+++ b/src/wayland-server.c
@@ -314,8 +314,8 @@ wl_resource_destroy(struct wl_resource *resource, uint32_t time)
{
struct wl_client *client = resource->client;
- destroy_resource(resource, &time);
wl_map_insert_at(&client->objects, resource->object.id, NULL);
+ destroy_resource(resource, &time);
}
WL_EXPORT void