mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 08:32:30 +00:00
util/addon: ensure the set is empty after finish
This commit is contained in:
parent
faa31d123f
commit
884237e9af
@ -14,6 +14,7 @@ void wlr_addon_set_finish(struct wlr_addon_set *set) {
|
|||||||
wl_list_for_each_safe(addon, tmp, &set->addons, link) {
|
wl_list_for_each_safe(addon, tmp, &set->addons, link) {
|
||||||
addon->impl->destroy(addon);
|
addon->impl->destroy(addon);
|
||||||
}
|
}
|
||||||
|
assert(wl_list_empty(&set->addons));
|
||||||
}
|
}
|
||||||
|
|
||||||
void wlr_addon_init(struct wlr_addon *addon, struct wlr_addon_set *set,
|
void wlr_addon_init(struct wlr_addon *addon, struct wlr_addon_set *set,
|
||||||
|
Loading…
Reference in New Issue
Block a user