Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11098

Modified Files:
        window.c 
Log Message:
Sync OpenBSD patchset 754:

When destroying a pane, reset any mode (which reenables pane
bufferevent) before freeing the bufferevent.


Index: window.c
===================================================================
RCS file: /cvsroot/tmux/tmux/window.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -d -r1.135 -r1.136
--- window.c    29 Aug 2010 14:42:11 -0000      1.135
+++ window.c    29 Aug 2010 14:46:13 -0000      1.136
@@ -493,6 +493,8 @@
 void
 window_pane_destroy(struct window_pane *wp)
 {
+       window_pane_reset_mode(wp);
+
        if (wp->fd != -1) {
                close(wp->fd);
                bufferevent_free(wp->event);
@@ -500,7 +502,6 @@
 
        input_free(wp);
 
-       window_pane_reset_mode(wp);
        screen_free(&wp->base);
        if (wp->saved_grid != NULL)
                grid_destroy(wp->saved_grid);


------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to