diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2006-10-15 22:48:43 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2006-10-15 22:48:43 +0930 |
commit | 9ee0c15941b029ea3fb4fbf30e78bb917b7f8c66 (patch) | |
tree | c991b0ae8b9f624821543babbbcf926ce893a3c3 /src/cairo-type1-fallback.c | |
parent | f7068de7f78890df9fbadba8b15d1c3b58166c2d (diff) |
cairo-type1-fallback.c: return correct error status
Diffstat (limited to 'src/cairo-type1-fallback.c')
-rw-r--r-- | src/cairo-type1-fallback.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo-type1-fallback.c b/src/cairo-type1-fallback.c index ea4826b13..fe5742904 100644 --- a/src/cairo-type1-fallback.c +++ b/src/cairo-type1-fallback.c @@ -705,8 +705,10 @@ _cairo_type1_fallback_init (cairo_type1_subset_t *type1_subset, 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); |