summaryrefslogtreecommitdiff
path: root/src/cairo-type1-fallback.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-10-05 09:39:20 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2007-10-05 15:24:25 +0100
commit29a5aae958fd9c6a8ec71326c7dad679c0bf5938 (patch)
treef8bf4cd176237934d7e8a9103b23a630a732f3c3 /src/cairo-type1-fallback.c
parentdd0f2d851cd4c4b2bab05668800e5379712f8ac6 (diff)
[cairo-type1-fallback] Propagate error from closing the stream.
Propagate the error from destroying the font and closing the output stream.
Diffstat (limited to 'src/cairo-type1-fallback.c')
-rw-r--r--src/cairo-type1-fallback.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cairo-type1-fallback.c b/src/cairo-type1-fallback.c
index 7f91643f2..24fb4d158 100644
--- a/src/cairo-type1-fallback.c
+++ b/src/cairo-type1-fallback.c
@@ -865,8 +865,7 @@ _cairo_type2_charstrings_init (cairo_type2_charstrings_t *type2_subset,
type2_subset->ascent = (int) font->y_max;
type2_subset->descent = (int) font->y_min;
- cairo_type1_font_destroy (font);
- return CAIRO_STATUS_SUCCESS;
+ return cairo_type1_font_destroy (font);
fail2:
_cairo_array_fini (&charstring);