Don't try to unref a NULL GDateTime*.

This commit is contained in:
John Ralls 2017-11-19 09:35:08 -08:00
parent ff76db28f5
commit 23f25d74d9

View File

@ -1503,8 +1503,8 @@ gnc_iso8601_to_timespec_gmt(const char *str)
{
time.tv_sec = g_date_time_to_unix (gdt);
time.tv_nsec = g_date_time_get_microsecond (gdt) * 1000;
g_date_time_unref (gdt);
}
g_date_time_unref (gdt);
return time;
}