fix a ref leak in vipsthumbnail

from the previous refactoring
This commit is contained in:
John Cupitt 2021-03-06 13:33:00 +00:00
parent ec16c761df
commit 6666b941bf

View File

@ -879,13 +879,13 @@ vips_thumbnail_build( VipsObject *object )
thumbnail->export_profile ); thumbnail->export_profile );
if( vips_colourspace( in, &t[7], if( vips_colourspace( in, &t[7],
VIPS_INTERPRETATION_XYZ, NULL ) || VIPS_INTERPRETATION_XYZ, NULL ) ||
vips_icc_export( t[7], &t[8], vips_icc_export( t[7], &t[10],
"output_profile", "output_profile",
thumbnail->export_profile, thumbnail->export_profile,
"intent", thumbnail->intent, "intent", thumbnail->intent,
NULL ) ) NULL ) )
return( -1 ); return( -1 );
in = t[8]; in = t[10];
} }
} }
else if( thumbnail->linear ) { else if( thumbnail->linear ) {