1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Unreference GDateTime

This commit is contained in:
James Booth 2016-07-25 23:09:51 +01:00
parent 8633cd6e29
commit 71730e9d99

View File

@ -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;