mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Free titlebar current_recipient when switching to console
This commit is contained in:
parent
e2aa4d6fd1
commit
fa0be4e50e
@ -95,6 +95,9 @@ void
|
|||||||
title_bar_console(void)
|
title_bar_console(void)
|
||||||
{
|
{
|
||||||
werase(win);
|
werase(win);
|
||||||
|
if (current_recipient != NULL) {
|
||||||
|
free(current_recipient);
|
||||||
|
}
|
||||||
current_recipient = NULL;
|
current_recipient = NULL;
|
||||||
typing = FALSE;
|
typing = FALSE;
|
||||||
typing_elapsed = NULL;
|
typing_elapsed = NULL;
|
||||||
@ -264,4 +267,4 @@ _title_bar_draw(void)
|
|||||||
|
|
||||||
wnoutrefresh(win);
|
wnoutrefresh(win);
|
||||||
inp_put_back();
|
inp_put_back();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user