[cairo-commit] src/cairo-truetype-subset.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Aug 8 04:39:39 PDT 2006


 src/cairo-truetype-subset.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

New commits:
diff-tree 23f388861803ca18746da2573424014c333fb63b (from 519bd3d3e972a88adea5bcf6ea7f582fe69c305c)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Aug 8 07:38:34 2006 -0400

    [TrueType] More leak fixes

diff --git a/src/cairo-truetype-subset.c b/src/cairo-truetype-subset.c
index 66b7cdf..167140e 100644
--- a/src/cairo-truetype-subset.c
+++ b/src/cairo-truetype-subset.c
@@ -278,11 +278,12 @@ _cairo_truetype_font_create (cairo_scale
 static void
 cairo_truetype_font_destroy (cairo_truetype_font_t *font)
 {
+    _cairo_array_fini (&font->string_offsets);
+    free (font->base.widths);
     free (font->base.base_font);
     free (font->parent_to_subset);
     free (font->glyphs);
     _cairo_array_fini (&font->output);
-    _cairo_array_fini (&font->string_offsets);
     free (font);
 }
 


More information about the cairo-commit mailing list