mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 10:26:16 +01:00
timezone: avoid a double GBytes unref
This will cause random memory corruption; functions should not unref passed-in parameters.
This commit is contained in:
parent
4d3bb3caf7
commit
f24594122c
@ -510,7 +510,6 @@ init_zone_from_iana_info (GTimeZone *gtz, GBytes *zoneinfo)
|
|||||||
g_assert (trans.info_index < gtz->t_info->len);
|
g_assert (trans.info_index < gtz->t_info->len);
|
||||||
g_array_append_val (gtz->transitions, trans);
|
g_array_append_val (gtz->transitions, trans);
|
||||||
}
|
}
|
||||||
g_bytes_unref (zoneinfo);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined (G_OS_WIN32)
|
#elif defined (G_OS_WIN32)
|
||||||
|
Loading…
Reference in New Issue
Block a user