mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 03:18:05 +02:00
Check status value of output_stream object at time of destroy
This commit is contained in:
parent
179f7defdf
commit
c28c33a588
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue