timezone: avoid a double GBytes unref

This will cause random memory corruption; functions should not unref
passed-in parameters.
This commit is contained in:
Cosimo Cecchi 2013-01-18 17:02:35 -05:00
parent 4d3bb3caf7
commit f24594122c

View File

@ -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)