projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d3bb3c
)
timezone: avoid a double GBytes unref
author
Cosimo Cecchi
<cosimoc@gnome.org>
Fri, 18 Jan 2013 22:02:35 +0000
(17:02 -0500)
committer
Cosimo 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
patch
|
blob
|
history
diff --git
a/glib/gtimezone.c
b/glib/gtimezone.c
index
3aa543f
..
d20ac2b
100644
(file)
--- 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)