diff --git a/src/status_bar.c b/src/status_bar.c index 3a22d3db..d9ae4aee 100644 --- a/src/status_bar.c +++ b/src/status_bar.c @@ -74,7 +74,6 @@ status_bar_refresh(void) if (elapsed >= 60000000) { dirty = TRUE; - g_date_time_unref(now_time); last_time = g_date_time_new_now_local(); } @@ -84,6 +83,8 @@ status_bar_refresh(void) inp_put_back(); dirty = FALSE; } + + g_date_time_unref(now_time); } void