mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
wayland-server: fix resource destroy
Object ID was read from freed memory.
This commit is contained in:
parent
c8dbd8cf9e
commit
a05546376c
1 changed files with 1 additions and 1 deletions
|
|
@ -314,8 +314,8 @@ wl_resource_destroy(struct wl_resource *resource, uint32_t time)
|
||||||
{
|
{
|
||||||
struct wl_client *client = resource->client;
|
struct wl_client *client = resource->client;
|
||||||
|
|
||||||
destroy_resource(resource, &time);
|
|
||||||
wl_map_insert_at(&client->objects, resource->object.id, NULL);
|
wl_map_insert_at(&client->objects, resource->object.id, NULL);
|
||||||
|
destroy_resource(resource, &time);
|
||||||
}
|
}
|
||||||
|
|
||||||
WL_EXPORT void
|
WL_EXPORT void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue