From 7a4fd9064ca90e314728a99165f9965ac342fdcb Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Thu, 22 Dec 2022 10:59:04 -0500 Subject: addon: Add more logging --- util/addon.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'util') diff --git a/util/addon.c b/util/addon.c index d4a8a06d..1bb00771 100644 --- a/util/addon.c +++ b/util/addon.c @@ -3,6 +3,7 @@ #include #include #include +#include void wlr_addon_set_init(struct wlr_addon_set *set) { memset(set, 0, sizeof(*set)); @@ -14,6 +15,11 @@ void wlr_addon_set_finish(struct wlr_addon_set *set) { wl_list_for_each_safe(addon, tmp, &set->addons, link) { addon->impl->destroy(addon); } + + wl_list_for_each(addon, &set->addons, link) { + wlr_log(WLR_ERROR, "Dangling addon: %s\n", addon->impl->name); + } + assert(wl_list_empty(&set->addons)); } -- cgit v1.2.3