diff options
author | Mathias Fiedler <Mathias.Fiedler@xse.de> | 2011-10-11 14:23:45 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-10-11 14:23:45 -0400 |
commit | a05546376c7332c111938ce6cadefd30570f689c (patch) | |
tree | 57989dae6e2067bb31f61ac24614f08c2783c575 /src/wayland-server.c | |
parent | c8dbd8cf9e0199f3bb6c9ff16287f1d8f435abfb (diff) |
wayland-server: fix resource destroy
Object ID was read from freed memory.
Diffstat (limited to 'src/wayland-server.c')
-rw-r--r-- | src/wayland-server.c | 2 |
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 |