diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-17 09:26:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-17 09:26:21 +0000 |
commit | 441c118b6338a129b4690089e41948baceefb452 (patch) | |
tree | 88b35abd87d3fe7b1a79d722630145a95c49a721 /cmd-select-prompt.c | |
parent | ac555340553ab9ebbf4ccb3050150f589f5c2c46 (diff) | |
download | rtmux-441c118b6338a129b4690089e41948baceefb452.tar.gz rtmux-441c118b6338a129b4690089e41948baceefb452.tar.bz2 rtmux-441c118b6338a129b4690089e41948baceefb452.zip |
Memory could be leaked if a second prompt or message appeared while another was
still present, so add a separate prompt free callback and make the _clear
function responsible for calling it if necessary (rather than the individual
Diffstat (limited to 'cmd-select-prompt.c')
-rw-r--r-- | cmd-select-prompt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-select-prompt.c b/cmd-select-prompt.c index d02916e1..57ae2722 100644 --- a/cmd-select-prompt.c +++ b/cmd-select-prompt.c @@ -1,4 +1,4 @@ -/* $Id: cmd-select-prompt.c,v 1.9 2009-07-15 17:50:11 nicm Exp $ */ +/* $Id: cmd-select-prompt.c,v 1.10 2009-07-17 09:26:21 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -55,7 +55,7 @@ cmd_select_prompt_exec(struct cmd *self, struct cmd_ctx *ctx) if (c->prompt_string != NULL) return (0); - status_prompt_set(c, "index ", cmd_select_prompt_callback, c, 0); + status_prompt_set(c, "index ", cmd_select_prompt_callback, NULL, c, 0); return (0); } |