aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-12-22 10:59:04 -0500
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-12-22 11:04:12 -0500
commit7a4fd9064ca90e314728a99165f9965ac342fdcb (patch)
treefe24bf9c4b703d1fcc2cec121b4754c76d1ef463 /util
parentb28a9afd4b0b86e9a66a40f6b44b69f59947b7d6 (diff)
addon: Add more logging
Diffstat (limited to 'util')
-rw-r--r--util/addon.c6
1 files changed, 6 insertions, 0 deletions
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 <string.h>
#include <wayland-server-core.h>
#include <wlr/util/addon.h>
+#include <wlr/util/log.h>
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));
}