Fix control mode teardown ordering for queued pane output, GitHub issue

5064 from Aaron Campbell.
This commit is contained in:
nicm
2026-05-12 09:27:28 +00:00
parent af98467d0d
commit 800837ff3f

View File

@@ -847,9 +847,9 @@ control_stop(struct client *c)
if (evtimer_initialized(&cs->subs_timer))
evtimer_del(&cs->subs_timer);
control_reset_offsets(c);
TAILQ_FOREACH_SAFE(cb, &cs->all_blocks, all_entry, cb1)
control_free_block(cs, cb);
control_reset_offsets(c);
c->control_state = NULL;
free(cs);