summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-09-11 02:40:12 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-09-11 02:40:12 +0000
commitf297582b2fb8dd16aab3cfa655961165df071b8d (patch)
tree565a36a1b478e577f4dd3eb8abc81b7c6a787a99
parente40599ab33d7cfe16512cca6152e26c6230cee4f (diff)
downloadpango-f297582b2fb8dd16aab3cfa655961165df071b8d.tar.gz
Use g_free() to free g_new()-allocated data, otherwise the GLib memory
2005-09-11 Matthias Clasen <mclasen@redhat.com> * pango/pangocairo-fontmap.c (free_context_info): Use g_free() to free g_new()-allocated data, otherwise the GLib memory profiler becomes very unhappy.
-rw-r--r--ChangeLog6
-rw-r--r--pango/pangocairo-fontmap.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 80bb96e5..89bb2bbc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-11 Matthias Clasen <mclasen@redhat.com>
+
+ * pango/pangocairo-fontmap.c (free_context_info): Use g_free()
+ to free g_new()-allocated data, otherwise the GLib memory profiler
+ becomes very unhappy.
+
2005-09-05 Behdad Esfahbod <pango@behdad.org>
* pango/pango-layout.c (pango_layout_set_auto_dir): Fixed typo in
diff --git a/pango/pangocairo-fontmap.c b/pango/pangocairo-fontmap.c
index c71d1f13..9fd7d87a 100644
--- a/pango/pangocairo-fontmap.c
+++ b/pango/pangocairo-fontmap.c
@@ -213,7 +213,7 @@ free_context_info (PangoCairoContextInfo *info)
if (info->merged_options)
cairo_font_options_destroy (info->merged_options);
- free (info);
+ g_free (info);
}
static PangoCairoContextInfo *