[cairo-commit] src/cairo-pdf-surface.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Aug 8 12:31:03 PDT 2006


 src/cairo-pdf-surface.c |    2 ++
 1 files changed, 2 insertions(+)

New commits:
diff-tree 16c18aea52f668caf9cd0b9774f8fa209468662f (from ac4922bd07db7a513b6dbe5443e95221d7827f79)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Aug 8 15:30:56 2006 -0400

    [PDF] Fix leak: free glyphs

diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index 1749804..8665ee2 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -1972,6 +1972,8 @@ _cairo_pdf_surface_emit_type3_font_subse
 				 ">>\r\n"
 				 "endobj\r\n");
 
+    free (glyphs);
+
     subset_resource = _cairo_pdf_surface_new_object (surface);
     matrix = font_subset->scaled_font->scale;
     cairo_matrix_invert (&matrix);


More information about the cairo-commit mailing list