aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-12 12:27:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-12 12:27:09 +0000
commit61b7bf91f751a9c1c468303aa6a2db91a0593a77 (patch)
tree06b6628e79e0cc17955ed2779ece6a85a311feaf /terminal.c
parentconfig: pt_or_px cannot be a union (diff)
parentreaper: remove child from list *before* calling the user provided callback (diff)
Merge branch 'fix-crash-when-closing-window'
Closes #289
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index 0ea04fc5..c05325ee 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1334,6 +1334,9 @@ term_shutdown(struct terminal *term)
fdm_del(term->fdm, term->blink.fd);
fdm_del(term->fdm, term->flash.fd);
+ /* We’ll deal with this explicitly */
+ reaper_del(term->reaper, term->slave);
+
if (term->window != NULL && term->window->is_configured)
fdm_del(term->fdm, term->ptmx);
else