Check status value of output_stream object at time of destroy

This commit is contained in:
Carl Worth 2006-09-07 16:42:04 -07:00
parent 179f7defdf
commit c28c33a588
2 changed files with 5 additions and 1 deletions

View file

@ -313,6 +313,8 @@ _cairo_ps_surface_emit_path (cairo_ps_surface_t *surface,
_cairo_ps_surface_path_close_path,
&path_info);
if (status == CAIRO_STATUS_SUCCESS)
status = _cairo_output_stream_get_status (word_wrap);
_cairo_output_stream_destroy (word_wrap);
return status;

View file

@ -526,7 +526,9 @@ cairo_type1_font_write_private_dict (cairo_type1_font_t *font,
"dup /FontName get exch definefont pop\n"
"mark currentfile closefile\n");
fail:
if (font->status == CAIRO_STATUS_SUCCESS)
font->status = _cairo_output_stream_get_status (encrypted_output);
fail:
_cairo_output_stream_destroy (encrypted_output);
return font->status;