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 /server-fn.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 'server-fn.c')
-rw-r--r-- | server-fn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server-fn.c b/server-fn.c index b6c25d8e..5957f596 100644 --- a/server-fn.c +++ b/server-fn.c @@ -1,4 +1,4 @@ -/* $Id: server-fn.c,v 1.71 2009-07-14 07:01:03 nicm Exp $ */ +/* $Id: server-fn.c,v 1.72 2009-07-17 09:26:21 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -171,8 +171,8 @@ server_lock(void) continue; status_prompt_clear(c); - status_prompt_set( - c, "Password: ", server_lock_callback, c, PROMPT_HIDDEN); + status_prompt_set(c, + "Password: ", server_lock_callback, c, NULL, PROMPT_HIDDEN); server_redraw_client(c); } server_locked = 1; |