mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
Do not check flags after the popup struct has been freed.
This commit is contained in:
parent
6d0376a679
commit
586cafff0f
5
popup.c
5
popup.c
@ -346,9 +346,8 @@ popup_job_complete_cb(struct job *job)
|
||||
pd->status = 0;
|
||||
pd->job = NULL;
|
||||
|
||||
if (pd->flags & POPUP_CLOSEEXIT)
|
||||
server_client_clear_overlay(pd->c);
|
||||
if ((pd->flags & POPUP_CLOSEEXITZERO) && pd->status == 0)
|
||||
if ((pd->flags & POPUP_CLOSEEXIT) ||
|
||||
((pd->flags & POPUP_CLOSEEXITZERO) && pd->status == 0))
|
||||
server_client_clear_overlay(pd->c);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user