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
This commit is contained in:
Nicholas Marriott
2009-07-17 09:26:21 +00:00
parent ac55534055
commit 441c118b63
6 changed files with 67 additions and 40 deletions

View File

@ -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;