diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-09-11 02:40:12 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-09-11 02:40:12 +0000 |
commit | f297582b2fb8dd16aab3cfa655961165df071b8d (patch) | |
tree | 565a36a1b478e577f4dd3eb8abc81b7c6a787a99 | |
parent | e40599ab33d7cfe16512cca6152e26c6230cee4f (diff) | |
download | pango-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-- | ChangeLog | 6 | ||||
-rw-r--r-- | pango/pangocairo-fontmap.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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 * |