about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-02-09 20:15:24 +0000
committerJames Booth <boothj5@gmail.com>2015-02-09 20:15:24 +0000
commitaad7b3ed8ac245252e8d400ee79205a196989a11 (patch)
tree2cfe264e1d7728cc6b6001c81a82a29878eb6ac7 /src
parent893b58bf4e0f6329ac36caac4408aa1200912e30 (diff)
downloadprofani-tty-aad7b3ed8ac245252e8d400ee79205a196989a11.tar.gz
Free GTimer on switch to console
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 326dbf8b..a3299946 100644
--- a/src/ui/titlebar.c
+++ b/src/ui/titlebar.c
@@ -109,8 +109,11 @@ void
 title_bar_console(void)
 {
     werase(win);
-    typing = FALSE;
+    if (typing_elapsed) {
+        g_timer_destroy(typing_elapsed);
+    }
     typing_elapsed = NULL;
+    typing = FALSE;
 
     _title_bar_draw();
 }