tests/utils: Declare ICalTimes with g_autoptr

The corresponding ICalComponent functions are transfer full.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/664>
This commit is contained in:
Georges Basile Stavracas Neto
2025-11-19 17:27:31 -03:00
parent 3225ffc88e
commit 2d8d50591e
+2 -2
View File
@@ -102,11 +102,11 @@ date_time_from_icaltime (void)
g_autoptr (GDateTime) gdt_start = NULL;
g_autoptr (GDateTime) gdt_end = NULL;
g_autoptr (ICalTime) dt_start = NULL;
g_autoptr (ICalTime) dt_end = NULL;
g_autofree gchar *start_str = NULL;
g_autofree gchar *end_str = NULL;
ICalComponent *comp = NULL;
ICalTime *dt_start = NULL;
ICalTime *dt_end = NULL;
comp = i_cal_component_new_from_string (events[i].string);
g_assert_nonnull (comp);