mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Do not double free window if pane fails to start.
This commit is contained in:
4
spawn.c
4
spawn.c
@ -172,10 +172,8 @@ spawn_window(struct spawn_context *sc, char **cause)
|
||||
/* Spawn the pane. */
|
||||
wp = spawn_pane(sc, cause);
|
||||
if (wp == NULL) {
|
||||
if (~sc->flags & SPAWN_RESPAWN) {
|
||||
window_destroy(w);
|
||||
if (~sc->flags & SPAWN_RESPAWN)
|
||||
winlink_remove(&s->windows, sc->wl);
|
||||
}
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user