wayland-server: fix resource destroy

Object ID was read from freed memory.
This commit is contained in:
Mathias Fiedler 2011-10-11 14:23:45 -04:00 committed by Kristian Høgsberg
parent c8dbd8cf9e
commit a05546376c

View file

@ -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