diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-21 18:20:44 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-21 18:20:44 +0000 |
commit | 33f5f84f995fb27a9a5d95723369eca2c90a8ec5 (patch) | |
tree | 4dc98fc7de86a4264bf08fe732ba45dea98c581b | |
parent | d63977ea8a9bd3109eea77535cea2536c3f73b67 (diff) | |
download | rtmux-33f5f84f995fb27a9a5d95723369eca2c90a8ec5.tar.gz rtmux-33f5f84f995fb27a9a5d95723369eca2c90a8ec5.tar.bz2 rtmux-33f5f84f995fb27a9a5d95723369eca2c90a8ec5.zip |
Whoops. Other way round.
-rw-r--r-- | window.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 <nicm@users.sourceforge.net> @@ -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. */ |