vo_dmabuf_wayland: ensure buffer pool is cleaned at start of uninit

This commit is contained in:
Aaron Boxer 2023-02-03 14:12:43 -05:00 committed by Dudemanguy
parent ce6efc782f
commit 6803903e0c
1 changed files with 1 additions and 1 deletions

View File

@ -339,6 +339,7 @@ static void uninit(struct vo *vo)
{
struct priv *p = vo->priv;
wlbuf_pool_free(p->wlbuf_pool);
if (p->solid_buffer_pool)
wl_shm_pool_destroy(p->solid_buffer_pool);
if (p->solid_buffer)
@ -348,7 +349,6 @@ static void uninit(struct vo *vo)
hwdec_devices_set_loader(vo->hwdec_devs, NULL, NULL);
hwdec_devices_destroy(vo->hwdec_devs);
}
wlbuf_pool_free(p->wlbuf_pool);
vo_wayland_uninit(vo);
ra_ctx_destroy(&p->ctx);
}