compositor: Do not leak old client buffers
This commit is contained in:
parent
282019a7df
commit
fb4b5a293a
@ -282,6 +282,8 @@ wlsc_buffer_attach(struct wl_buffer *buffer, struct wl_surface *surface)
|
||||
wl_list_remove(&es->buffer_link);
|
||||
wl_list_insert(surfaces_attached_to, &es->buffer_link);
|
||||
} else {
|
||||
if (es->image != EGL_NO_IMAGE_KHR)
|
||||
ec->destroy_image(ec->display, es->image);
|
||||
es->image = ec->create_image(ec->display, NULL,
|
||||
EGL_WAYLAND_BUFFER_WL,
|
||||
buffer, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user