mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 05:46:20 +00:00
Unreference date time
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user