tests: Fix leaks in new GDateTime file info tests

From b7b10cc7e0. My fault!

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-06-01 15:19:59 +01:00
parent 164b9894b5
commit 4282f22102

View File

@ -241,6 +241,8 @@ test_g_file_info_modification_time (void)
g_assert_cmpuint (new_nsecs, ==, nsecs + 100);
g_assert_cmpuint (new_nsecs, >=, new_usecs * 1000);
g_assert_cmpuint (new_nsecs, <, (new_usecs + 1) * 1000);
g_date_time_unref (new_dt_usecs);
}
/* Clean up. */
@ -363,6 +365,8 @@ test_g_file_info_access_time (void)
g_assert_cmpuint (new_nsecs, ==, nsecs + 100);
g_assert_cmpuint (new_nsecs, >=, new_usecs * 1000);
g_assert_cmpuint (new_nsecs, <, (new_usecs + 1) * 1000);
g_date_time_unref (new_dt_usecs);
}
/* Clean up. */
@ -496,6 +500,8 @@ test_g_file_info_creation_time (void)
g_assert_cmpuint (new_nsecs, ==, nsecs + 100);
g_assert_cmpuint (new_nsecs, >=, new_usecs * 1000);
g_assert_cmpuint (new_nsecs, <, (new_usecs + 1) * 1000);
g_date_time_unref (new_dt_usecs);
}
else
{