aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-29 11:58:28 -0500
committerTed Gould <ted@gould.cx>2011-03-29 11:58:28 -0500
commit5d401d9c978453c29c6d74694fe68e4155534283 (patch)
treea83abdf4b84f9a72af1645ca56cbd40d00414551 /src/utils.c
parent6185b56b563e39d10801e555bf3b51a18f586bdd (diff)
parentb86cc25455f38c4162ecd1fe6add20373c789980 (diff)
downloadayatana-indicator-datetime-5d401d9c978453c29c6d74694fe68e4155534283.tar.gz
ayatana-indicator-datetime-5d401d9c978453c29c6d74694fe68e4155534283.tar.bz2
ayatana-indicator-datetime-5d401d9c978453c29c6d74694fe68e4155534283.zip
Fix crash with GVariantBuilder, unref a timedate and ensure that we always have a separator
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 537495b..d8851aa 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -233,6 +233,8 @@ generate_format_string_at_time (GDateTime * time)
g_date_time_unref(future_bound);
}
+ g_date_time_unref (now);
+
return generate_format_string_full(show_day, show_date);
}