From b28a9afd4b0b86e9a66a40f6b44b69f59947b7d6 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Thu, 22 Dec 2022 18:35:53 +0300 Subject: [PATCH] presentation-time: finish surface addon Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3554 --- types/wlr_presentation_time.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/wlr_presentation_time.c b/types/wlr_presentation_time.c index 11531531..082b9a93 100644 --- a/types/wlr_presentation_time.c +++ b/types/wlr_presentation_time.c @@ -61,6 +61,8 @@ static void presentation_surface_addon_destroy(struct wlr_addon *addon) { struct wlr_presentation_surface *p_surface = wl_container_of(addon, p_surface, addon); + wlr_addon_finish(addon); + wlr_presentation_feedback_destroy(p_surface->current.feedback); wlr_presentation_feedback_destroy(p_surface->pending.feedback);