[cairo-commit] src/cairo-type1-fallback.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Sun Oct 15 06:21:36 PDT 2006


 src/cairo-type1-fallback.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

New commits:
diff-tree 9ee0c15941b029ea3fb4fbf30e78bb917b7f8c66 (from f7068de7f78890df9fbadba8b15d1c3b58166c2d)
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sun Oct 15 22:48:43 2006 +0930

    cairo-type1-fallback.c: return correct error status

diff --git a/src/cairo-type1-fallback.c b/src/cairo-type1-fallback.c
index ea4826b..fe57429 100644
--- a/src/cairo-type1-fallback.c
+++ b/src/cairo-type1-fallback.c
@@ -705,8 +705,10 @@ _cairo_type1_fallback_init (cairo_type1_
     length = font->header_size + font->data_size +
 	font->trailer_size;
     type1_subset->data = malloc (length);
-    if (type1_subset->data == NULL)
+    if (type1_subset->data == NULL) {
+        status = CAIRO_STATUS_NO_MEMORY;
 	goto fail3;
+    }
 
     memcpy (type1_subset->data,
 	    _cairo_array_index (&font->contents, 0), length);


More information about the cairo-commit mailing list