[glib: 1/5] tests: Fix leaks in new GDateTime file info tests
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/5] tests: Fix leaks in new GDateTime file info tests
- Date: Wed, 1 Jun 2022 17:23:03 +0000 (UTC)
commit 4282f221028fe95bd01a81ad719c9a5b2812aeb0
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Jun 1 15:19:59 2022 +0100
tests: Fix leaks in new GDateTime file info tests
From b7b10cc7e051baa211351896dcfdfa94c135ccc6. My fault!
Signed-off-by: Philip Withnall <pwithnall endlessos org>
gio/tests/g-file-info.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gio/tests/g-file-info.c b/gio/tests/g-file-info.c
index d97b78b716..2786e75b72 100644
--- a/gio/tests/g-file-info.c
+++ b/gio/tests/g-file-info.c
@@ -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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]