Call bufferevent_free before closing file descriptor associated with it

or bugs in $EventMechanism on $OtherOS makes libevent get it's knickers
in a twist. From Dylan Alex Simon.
This commit is contained in:
Nicholas Marriott
2012-01-29 02:22:11 +00:00
parent a7a44bfcd9
commit 9bbc63ed65
4 changed files with 12 additions and 12 deletions

View File

@ -337,8 +337,8 @@ server_destroy_pane(struct window_pane *wp)
old_fd = wp->fd;
if (wp->fd != -1) {
close(wp->fd);
bufferevent_free(wp->event);
close(wp->fd);
wp->fd = -1;
}