From 47fd81d5b9bff3219407a8c21795149882f191a6 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 6 Oct 2012 00:16:53 +0100 Subject: [PATCH] Fixed memory leak --- src/status_bar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status_bar.c b/src/status_bar.c index 3a22d3db..d9ae4aee 100644 --- a/src/status_bar.c +++ b/src/status_bar.c @@ -74,7 +74,6 @@ status_bar_refresh(void) if (elapsed >= 60000000) { dirty = TRUE; - g_date_time_unref(now_time); last_time = g_date_time_new_now_local(); } @@ -84,6 +83,8 @@ status_bar_refresh(void) inp_put_back(); dirty = FALSE; } + + g_date_time_unref(now_time); } void