From 5cb483680f608b49ab6068bce0d7b006af1dbbfd Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 27 Aug 2007 11:41:00 +0000 Subject: [PATCH] Use after free. --- window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/window.c b/window.c index 1e71bbbd..5052b4e2 100644 --- a/window.c +++ b/window.c @@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.3 2007-08-27 10:08:44 nicm Exp $ */ +/* $Id: window.c,v 1.4 2007-08-27 11:41:00 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -162,8 +162,8 @@ window_remove(struct windows *ww, struct window *w) w->references--; if (w->references == 0) { - window_destroy(w); window_remove(&windows, w); + window_destroy(w); } }