From 44dab335521fc28022f470ead62e2165e18f287b Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 20 Dec 2012 00:00:42 +0000 Subject: [PATCH] Clean up gtimer on show typing --- src/title_bar.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/title_bar.c b/src/title_bar.c index 73352081..af22d5cc 100644 --- a/src/title_bar.c +++ b/src/title_bar.c @@ -91,6 +91,9 @@ title_bar_refresh(void) title_bar_draw(); + g_timer_destroy(typing_elapsed); + typing_elapsed = NULL; + dirty = TRUE; } } @@ -124,7 +127,10 @@ title_bar_set_status(jabber_presence_t status) void title_bar_set_recipient(char *from) { - typing_elapsed = NULL; + if (typing_elapsed != NULL) { + g_timer_destroy(typing_elapsed); + typing_elapsed = NULL; + } recipient = from; if (current_title != NULL) {