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 07:05:58 +00:00
parent 65deba3a35
commit 216df07688
5 changed files with 22 additions and 16 deletions

2
tmux.h
View File

@ -1490,7 +1490,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);