diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c index 1b1fe81e05..96d02c5f00 100644 --- a/video/out/vo_drm.c +++ b/video/out/vo_drm.c @@ -382,8 +382,6 @@ static void flip_page(struct vo *vo) static void uninit(struct vo *vo) { struct priv *p = vo->priv; - struct vo_drm_state *drm = vo->drm; - int fd = drm->fd; vo_drm_uninit(vo); @@ -391,9 +389,6 @@ static void uninit(struct vo *vo) swapchain_step(vo); } - for (int i = 0; i < p->buf_count; ++i) - destroy_framebuffer(fd, p->bufs[i]); - talloc_free(p->last_input); talloc_free(p->cur_frame); talloc_free(p->cur_frame_cropped);