aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-01 19:25:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-01 19:25:08 +0000
commitbc815a33dbe998a108e395634c308f47a6780276 (patch)
tree92d77790b1e5d9c743b01bd2e3e213c3f948ad00
parentDon't use non-blocking FDs (diff)
wayland: wayl_destroy(): destroy any remaining terminals
-rw-r--r--wayland.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index 21ab1359..97917e77 100644
--- a/wayland.c
+++ b/wayland.c
@@ -544,8 +544,17 @@ wayl_destroy(struct wayland *wayl)
if (wayl == NULL)
return;
+ tll_foreach(wayl->terms, it) {
+ static bool have_warned = false;
+ if (!have_warned) {
+ have_warned = true;
+ LOG_WARN("there are terminals still running");
+ term_destroy(it->item);
+ }
}
+ tll_free(wayl->terms);
+
fdm_del(wayl->fdm, wayl->kbd.repeat.fd);
tll_foreach(wayl->monitors, it) {