From 71730e9d995813b2c5981462e0669a0c69a93204 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 25 Jul 2016 23:09:51 +0100 Subject: [PATCH] Unreference GDateTime --- src/ui/window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/window.c b/src/ui/window.c index 89e5f1ac..080fd0ca 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -711,6 +711,7 @@ win_show_contact(ProfWin *window, PContact contact) if (last_activity) { 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;