mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user