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

Adrian Johnson ajohnson at kemper.freedesktop.org
Wed Sep 30 04:56:40 PDT 2009


 src/cairo-truetype-subset.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 42ea356c0393288eea16eb5c591fa51009f85cb9
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Wed Sep 30 21:21:42 2009 +0930

    Fix truetype subset crash
    
    Bug 24213

diff --git a/src/cairo-truetype-subset.c b/src/cairo-truetype-subset.c
index 92c0547..3a813ee 100644
--- a/src/cairo-truetype-subset.c
+++ b/src/cairo-truetype-subset.c
@@ -216,6 +216,7 @@ _cairo_truetype_font_create (cairo_scaled_font_subset_t  *scaled_font_subset,
     if (font->base.units_per_em == 0)
         font->base.units_per_em = 2048;
 
+    font->base.ps_name = NULL;
     font->base.font_name = NULL;
     status = _cairo_truetype_read_font_name (scaled_font_subset->scaled_font,
 					     &font->base.ps_name,


More information about the cairo-commit mailing list