1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Unreference date time

This commit is contained in:
James Booth 2014-09-24 00:52:32 +01:00
parent 5c36f85199
commit a288c200d7

View File

@ -311,6 +311,7 @@ win_show_status_string(ProfWin *window, const char * const from,
if (last_activity != NULL) { if (last_activity != NULL) {
GDateTime *now = g_date_time_new_now_local(); GDateTime *now = g_date_time_new_now_local();
GTimeSpan span = g_date_time_difference(now, last_activity); GTimeSpan span = g_date_time_difference(now, last_activity);
g_date_time_unref(now);
int hours = span / G_TIME_SPAN_HOUR; int hours = span / G_TIME_SPAN_HOUR;
span = span - hours * G_TIME_SPAN_HOUR; span = span - hours * G_TIME_SPAN_HOUR;