A similar for fix for window_choose: don't rely on the callback always being

called to free data, have a separate free callback and call it from the mode
cleanup code.
This commit is contained in:
Nicholas Marriott
2009-07-17 12:12:54 +00:00
parent fc17ce0150
commit 89543e999d
6 changed files with 28 additions and 22 deletions

4
tmux.h
View File

@ -1,4 +1,4 @@
/* $Id: tmux.h,v 1.367 2009-07-17 09:26:21 nicm Exp $ */
/* $Id: tmux.h,v 1.368 2009-07-17 12:12:54 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -1489,7 +1489,7 @@ void window_choose_vadd(
void printflike3 window_choose_add(
struct window_pane *, int, const char *, ...);
void window_choose_ready(struct window_pane *,
u_int, void (*)(void *, int), void *);
u_int, void (*)(void *, int), void (*)(void *), void *);
/* names.c */
void set_window_names(void);