From 7000277f949a11b6176d3f97cb1bf154c52b1009 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 27 Aug 2007 11:45:03 +0000 Subject: [PATCH] Don't try to upadte window after free. --- server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.c b/server.c index 3c5ea846..2c5ab06c 100644 --- a/server.c +++ b/server.c @@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.3 2007-08-27 10:24:03 nicm Exp $ */ +/* $Id: server.c,v 1.4 2007-08-27 11:45:03 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -663,7 +663,8 @@ lost_window(struct window *w) if (session_has(c->session, w)) { if (session_detach(c->session, w) != 0) write_client(c, MSG_EXIT, NULL, 0); - changed_window(c); + else + changed_window(c); } } }