about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/titlebar.c5
1 files changed, 4 insertions, 1 deletions
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
+}