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:
f245941
)
timezone: plug a memleak
author
Cosimo Cecchi
<cosimoc@gnome.org>
Fri, 18 Jan 2013 22:22:52 +0000
(17:22 -0500)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Fri, 18 Jan 2013 22:22:52 +0000
(17:22 -0500)
glib/gtimezone.c
patch
|
blob
|
history
diff --git
a/glib/gtimezone.c
b/glib/gtimezone.c
index
d20ac2b
..
7bb48d2
100644
(file)
--- a/
glib/gtimezone.c
+++ b/
glib/gtimezone.c
@@
-233,7
+233,15
@@
again:
}
if (tz->t_info != NULL)
- g_array_free (tz->t_info, TRUE);
+ {
+ gint idx;
+ for (idx = 0; idx < tz->t_info->len; idx++)
+ {
+ TransitionInfo *info = &g_array_index (tz->t_info, TransitionInfo, idx);
+ g_free (info->abbrev);
+ }
+ g_array_free (tz->t_info, TRUE);
+ }
if (tz->transitions != NULL)
g_array_free (tz->transitions, TRUE);
g_free (tz->name);