From 884237e9afb582699a9c0d051769c3a89f8a9b22 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Thu, 22 Dec 2022 11:26:01 +0300 Subject: [PATCH] util/addon: ensure the set is empty after finish --- util/addon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/addon.c b/util/addon.c index bebd14b9e..d4a8a06d0 100644 --- a/util/addon.c +++ b/util/addon.c @@ -14,6 +14,7 @@ void wlr_addon_set_finish(struct wlr_addon_set *set) { wl_list_for_each_safe(addon, tmp, &set->addons, link) { addon->impl->destroy(addon); } + assert(wl_list_empty(&set->addons)); } void wlr_addon_init(struct wlr_addon *addon, struct wlr_addon_set *set,