diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2005-11-23 15:41:17 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2005-11-23 15:41:17 +0000 |
commit | 7da87e9a3606a71fd21a86efc35fd3860f02bf1d (patch) | |
tree | 5c42203460679b22f9dc01e014f4dea0b7e692b6 | |
parent | 799bb9223ff72ce266c82b91ea18defa10b33086 (diff) | |
download | pango-7da87e9a3606a71fd21a86efc35fd3860f02bf1d.tar.gz |
Free used memory. (#316467, Steve Grubb)
2005-11-23 Behdad Esfahbod <behdad@gnome.org>
* pango/querymodules.c: Free used memory. (#316467, Steve Grubb)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | pango/querymodules.c | 4 |
2 files changed, 9 insertions, 1 deletions
@@ -1,12 +1,16 @@ 2005-11-23 Behdad Esfahbod <behdad@gnome.org> + * pango/querymodules.c: Free used memory. (#316467, Steve Grubb) + +2005-11-23 Behdad Esfahbod <behdad@gnome.org> + * modules/hangul/hangul-fc.c (hangul_engine_shape): Fix incorrect bounds check. (#316469, Steve Grubb) Moreover, increase max_jamos eight at a time instead of three. 2005-11-23 Behdad Esfahbod <behdad@gnome.org> - Protect against possible division by zeros (#316468, Steve Grubb) + Protect against possible division by zeros. (#316468, Steve Grubb) * pango/pango-context.c (update_metrics_from_items), pango/pango-fontset.c (pango_fontset_real_get_metrics): If count is diff --git a/pango/querymodules.c b/pango/querymodules.c index 8eb32fc7..0eb290e5 100644 --- a/pango/querymodules.c +++ b/pango/querymodules.c @@ -222,6 +222,8 @@ int main (int argc, char **argv) dirs = pango_split_file_list (path); + g_free (path); + for (i=0; dirs[i]; i++) { GDir *dir = g_dir_open (dirs[i], 0, NULL); @@ -239,6 +241,8 @@ int main (int argc, char **argv) g_dir_close (dir); } } + + g_strfreev (dirs); } else { |