mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
Fix wild pointer to buffer
After the buffer is released from the release event, it should no longer be accessed. Fixes a GTK crash.
This commit is contained in:
parent
995ebe3bb0
commit
c6631e2140
1 changed files with 1 additions and 0 deletions
|
|
@ -293,6 +293,7 @@ release:
|
|||
pixman_region32_init(&surface->current.buffer_damage);
|
||||
|
||||
wl_resource_queue_event(surface->current.buffer, WL_BUFFER_RELEASE);
|
||||
surface->current.buffer = NULL;
|
||||
}
|
||||
|
||||
static void surface_set_buffer_transform(struct wl_client *client,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue