timezone: avoid a double GBytes unref
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 18 Jan 2013 22:02:35 +0000 (17:02 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 18 Jan 2013 22:09:31 +0000 (17:09 -0500)
This will cause random memory corruption; functions should not unref
passed-in parameters.

glib/gtimezone.c

index 3aa543f..d20ac2b 100644 (file)
@@ -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)