Fix use-after-free.

This commit is contained in:
Nicholas Marriott 2007-11-21 14:57:08 +00:00
parent ef18b7d637
commit ad1541913f

View File

@ -1,4 +1,4 @@
/* $Id: window-scroll.c,v 1.3 2007-11-21 14:39:46 nicm Exp $ */ /* $Id: window-scroll.c,v 1.4 2007-11-21 14:57:08 nicm Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -97,7 +97,7 @@ window_scroll_key(struct window *w, int key)
recalculate_sizes(); recalculate_sizes();
server_redraw_window_all(w); server_redraw_window_all(w);
break; return;
case 'k': case 'k':
case 'K': case 'K':
case KEYC_UP: case KEYC_UP: