aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2022-12-22 11:26:01 +0300
committerKirill Primak <vyivel@eclair.cafe>2022-12-22 12:42:08 +0300
commit884237e9afb582699a9c0d051769c3a89f8a9b22 (patch)
treefd1c019ad9766ff2c1a9ae3475ce9454cb8066f3
parentfaa31d123f7619750f733c22e4d616ed615c7232 (diff)
util/addon: ensure the set is empty after finish
-rw-r--r--util/addon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/addon.c b/util/addon.c
index bebd14b9..d4a8a06d 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,