From aad7b3ed8ac245252e8d400ee79205a196989a11 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 9 Feb 2015 20:15:24 +0000 Subject: Free GTimer on switch to console --- src/ui/titlebar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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(); } -- cgit 1.4.1-2-gfad0