core/event: Remove g_autoptr declaration

Turns out g_date_time_get_timezone() is transfer-none, so assigning it
to a g_autoptr variable is invalid.

Fixes 42f891ff42

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/663>
This commit is contained in:
Georges Basile Stavracas Neto
2025-11-19 09:47:29 -03:00
parent 6bb52f53e5
commit a884076dc5
+1 -1
View File
@@ -231,8 +231,8 @@ build_component_from_datetime (GcalEvent *self,
}
else
{
g_autoptr (GTimeZone) zone = NULL;
ICalTimezone *tz;
GTimeZone *zone;
zone = g_date_time_get_timezone (dt);
tz = gcal_timezone_to_icaltimezone (zone);