1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Free GTimer on switch to console

This commit is contained in:
James Booth 2015-02-09 20:15:24 +00:00
parent 893b58bf4e
commit aad7b3ed8a

View File

@ -109,8 +109,11 @@ void
title_bar_console(void) title_bar_console(void)
{ {
werase(win); werase(win);
typing = FALSE; if (typing_elapsed) {
g_timer_destroy(typing_elapsed);
}
typing_elapsed = NULL; typing_elapsed = NULL;
typing = FALSE;
_title_bar_draw(); _title_bar_draw();
} }