From 33f5f84f995fb27a9a5d95723369eca2c90a8ec5 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 21 Sep 2007 18:20:44 +0000 Subject: [PATCH] Whoops. Other way round. --- window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/window.c b/window.c index 9f9de97b..dc7eec10 100644 --- a/window.c +++ b/window.c @@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.8 2007-09-21 18:11:25 nicm Exp $ */ +/* $Id: window.c,v 1.9 2007-09-21 18:20:44 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -187,10 +187,10 @@ window_remove(struct windows *ww, struct window *w) ARRAY_TRUNC(ww, 1); w->references--; - if (w->references == 1) - window_remove(&windows, w); if (w->references == 0) window_destroy(w); + if (w->references == 1) + window_remove(&windows, w); } /* Destroy a window. */