Commit c87737c2 authored by Chris Wilson's avatar Chris Wilson 🤔
Browse files

ps: Skip surface emission if in error state.

During finish, if we encountered an error during the construction of the
surface, simply proceed to cleanup rather than emit the incomplete and
potentially subtly broken output.
parent e961cdf5
......@@ -1499,6 +1499,10 @@ _cairo_ps_surface_finish (void *abstract_surface)
int i, num_comments;
char **comments;
status = surface->base.status;
if (unlikely (status))
goto CLEANUP;
_cairo_ps_surface_emit_header (surface);
status = _cairo_ps_surface_emit_font_subsets (surface);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment