summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2005-11-23 15:41:30 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2005-11-23 15:41:30 +0000
commit997bc806b0fd02ea14d2c5aa127078c995241362 (patch)
tree9d3c22716b236cbef851e3d3e0198fcf10a06512
parenta6285ac07822ac8c74b00bcadc8861b9ca5eff3d (diff)
downloadpango-997bc806b0fd02ea14d2c5aa127078c995241362.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--ChangeLog6
-rw-r--r--pango/querymodules.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 37fbac33..5ec9eeef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 8c5553d1..c6cb4f66 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
{