From fa0be4e50ed8be0cd1fc8bb9fa2e0c1885998770 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 17 Jun 2014 22:05:32 +0100 Subject: [PATCH] Free titlebar current_recipient when switching to console --- src/ui/titlebar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index 1b43d6b3..a273ea46 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -95,6 +95,9 @@ void title_bar_console(void) { werase(win); + if (current_recipient != NULL) { + free(current_recipient); + } current_recipient = NULL; typing = FALSE; typing_elapsed = NULL; @@ -264,4 +267,4 @@ _title_bar_draw(void) wnoutrefresh(win); inp_put_back(); -} \ No newline at end of file +}