[glib] timezone: avoid a double GBytes unref
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] timezone: avoid a double GBytes unref
- Date: Fri, 18 Jan 2013 22:09:42 +0000 (UTC)
commit f24594122c3e3c66702ff537d3468ed251838007
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Jan 18 17:02:35 2013 -0500
timezone: avoid a double GBytes unref
This will cause random memory corruption; functions should not unref
passed-in parameters.
glib/gtimezone.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/glib/gtimezone.c b/glib/gtimezone.c
index 3aa543f..d20ac2b 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]