fix a refleak in pngsave

introduced in d8ed630d77
This commit is contained in:
John Cupitt 2021-02-07 15:22:09 +00:00
parent 4605ad6993
commit a7185b0973

View File

@ -146,8 +146,12 @@ vips_foreign_save_png_build( VipsObject *object )
if( vips__png_write_target( in, png->target,
png->compression, png->interlace, png->profile, png->filter,
save->strip, png->palette, png->Q, png->dither,
png->bitdepth ) )
png->bitdepth ) ) {
g_object_unref( in );
return( -1 );
}
g_object_unref( in );
return( 0 );
}