From a288c200d70e83138e404afa52968874255d9822 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 24 Sep 2014 00:52:32 +0100 Subject: [PATCH] Unreference date time --- src/ui/window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/window.c b/src/ui/window.c index 1f7794f0..b9d2bee4 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -311,6 +311,7 @@ win_show_status_string(ProfWin *window, const char * const from, if (last_activity != NULL) { GDateTime *now = g_date_time_new_now_local(); GTimeSpan span = g_date_time_difference(now, last_activity); + g_date_time_unref(now); int hours = span / G_TIME_SPAN_HOUR; span = span - hours * G_TIME_SPAN_HOUR;