backend-vnc: destroy renderbuffer before renderer output state

Reorder pixman renderer output state and renderbuffer removal to make
sure the pixman renderbuffer list is empty when the output state is
destroyed.

Fixes: 4d96635a3f ("pixman-renderer: track damage in weston_renderbuffer")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
Philipp Zabel 2023-02-01 14:22:31 +01:00 committed by Marius Vlad
parent 8057f28b98
commit 51ef88a7f4

View File

@ -663,11 +663,11 @@ vnc_output_disable(struct weston_output *base)
if (!output->base.enabled)
return 0;
renderer->pixman->output_destroy(&output->base);
nvnc_display_unref(output->display);
nvnc_fb_pool_unref(output->fb_pool);
renderer->pixman->output_destroy(&output->base);
wl_event_source_remove(output->finish_frame_timer);
backend->output = NULL;