Delete Cairo context on rsvg_handle_render_cairo error
This commit is contained in:
parent
8d5af9fe8a
commit
b8f7fb6d20
@ -340,6 +340,7 @@ vips_foreign_load_svg_generate( VipsRegion *or,
|
||||
* running inside a non-threaded tilecache.
|
||||
*/
|
||||
if( !rsvg_handle_render_cairo( svg->page, cr ) ) {
|
||||
cairo_destroy( cr );
|
||||
vips_operation_invalidate( VIPS_OPERATION( svg ) );
|
||||
vips_error( class->nickname,
|
||||
"%s", _( "SVG rendering failed" ) );
|
||||
|
Loading…
Reference in New Issue
Block a user