aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2022-12-22 18:35:53 +0300
committerKirill Primak <vyivel@eclair.cafe>2022-12-22 18:35:53 +0300
commitb28a9afd4b0b86e9a66a40f6b44b69f59947b7d6 (patch)
tree562b129be7737075295f95408142e36c2f117270
parentcef1811547a8c3dcdfae6feb5a3100d9c1148729 (diff)
presentation-time: finish surface addon
Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3554
-rw-r--r--types/wlr_presentation_time.c2
1 files changed, 2 insertions, 0 deletions
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);