Assert (almost all) signals have no attached listeners on destroy

This commit is contained in:
Kirill Primak 2024-11-22 20:32:32 +03:00
parent b03b05d2b3
commit 8f56f7ca43
79 changed files with 518 additions and 9 deletions

View file

@ -51,6 +51,9 @@ void wlr_renderer_destroy(struct wlr_renderer *r) {
wl_signal_emit_mutable(&r->events.destroy, r);
assert(wl_list_empty(&r->events.destroy.listener_list));
assert(wl_list_empty(&r->events.lost.listener_list));
if (r->impl && r->impl->destroy) {
r->impl->destroy(r);
} else {