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:
@@ -231,8 +231,8 @@ build_component_from_datetime (GcalEvent *self,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_autoptr (GTimeZone) zone = NULL;
|
|
||||||
ICalTimezone *tz;
|
ICalTimezone *tz;
|
||||||
|
GTimeZone *zone;
|
||||||
|
|
||||||
zone = g_date_time_get_timezone (dt);
|
zone = g_date_time_get_timezone (dt);
|
||||||
tz = gcal_timezone_to_icaltimezone (zone);
|
tz = gcal_timezone_to_icaltimezone (zone);
|
||||||
|
|||||||
Reference in New Issue
Block a user