From f24594122c3e3c66702ff537d3468ed251838007 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 18 Jan 2013 17:02:35 -0500 Subject: [PATCH] timezone: avoid a double GBytes unref This will cause random memory corruption; functions should not unref passed-in parameters. --- glib/gtimezone.c | 1 - 1 file changed, 1 deletion(-) diff --git a/glib/gtimezone.c b/glib/gtimezone.c index 3aa543f9a..d20ac2b68 100644 --- a/glib/gtimezone.c +++ b/glib/gtimezone.c @@ -510,7 +510,6 @@ init_zone_from_iana_info (GTimeZone *gtz, GBytes *zoneinfo) g_assert (trans.info_index < gtz->t_info->len); g_array_append_val (gtz->transitions, trans); } - g_bytes_unref (zoneinfo); } #elif defined (G_OS_WIN32)