flush target at end of write

we were missing end-of-write flushes on four save operations

thanks harukizaemon

see https://github.com/libvips/ruby-vips/issues/256
This commit is contained in:
John Cupitt 2020-11-04 09:28:25 +00:00
parent 39899582d4
commit 4de9b56725
5 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,7 @@
- fix out of bounds exif read in heifload
- fix out of bounds read in tiffload
- fix tiffsave region shrink mode [imgifty]
- add missing flushes on write to target [harukizaemon]
6/9/20 started 8.10.2
- update magicksave/load profile handling [kelilevi]

View File

@ -179,6 +179,8 @@ vips_foreign_save_csv_build( VipsObject *object )
if( vips_sink_disc( save->ready, vips_foreign_save_csv_block, csv ) )
return( -1 );
vips_target_finish( csv->target );
return( 0 );
}

View File

@ -136,6 +136,8 @@ vips_foreign_save_matrix_build( VipsObject *object )
vips_foreign_save_matrix_block, matrix ) )
return( -1 );
vips_target_finish( matrix->target );
return( 0 );
}

View File

@ -301,6 +301,8 @@ vips_foreign_save_ppm( VipsForeignSavePpm *ppm, VipsImage *image )
if( vips_sink_disc( image, vips_foreign_save_ppm_block, ppm ) )
return( -1 );
vips_target_finish( ppm->target );
return( 0 );
}

View File

@ -1192,6 +1192,8 @@ write_vips( Write *write,
png_write_end( write->pPng, write->pInfo );
vips_target_finish( write->target );
return( 0 );
}