From 29a5aae958fd9c6a8ec71326c7dad679c0bf5938 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 5 Oct 2007 09:39:20 +0100 Subject: [cairo-type1-fallback] Propagate error from closing the stream. Propagate the error from destroying the font and closing the output stream. --- src/cairo-type1-fallback.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cairo-type1-fallback.c') 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); -- cgit v1.2.3