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

@ -455,7 +455,13 @@ void wlr_xwayland_server_destroy(struct wlr_xwayland_server *server) {
}
server_finish_process(server);
server_finish_display(server);
wl_signal_emit_mutable(&server->events.destroy, NULL);
assert(wl_list_empty(&server->events.start.listener_list));
assert(wl_list_empty(&server->events.ready.listener_list));
assert(wl_list_empty(&server->events.destroy.listener_list));
free(server);
}