about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-06-17 22:05:32 +0100
committerJames Booth <boothj5@gmail.com>2014-06-17 22:05:32 +0100
commitfa0be4e50ed8be0cd1fc8bb9fa2e0c1885998770 (patch)
treeab8300ed2ead7767450edd906d99dc44097fb896
parente2aa4d6fd1cb6fb1fa56044b7f0f1de5a4d0670a (diff)
downloadprofani-tty-fa0be4e50ed8be0cd1fc8bb9fa2e0c1885998770.tar.gz
Free titlebar current_recipient when switching to console
-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
+}