From 6666b941bfb8102d3038e369b63da17afe07fc06 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 6 Mar 2021 13:33:00 +0000 Subject: [PATCH] fix a ref leak in vipsthumbnail from the previous refactoring --- libvips/resample/thumbnail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvips/resample/thumbnail.c b/libvips/resample/thumbnail.c index 40826a43..a2a395b6 100644 --- a/libvips/resample/thumbnail.c +++ b/libvips/resample/thumbnail.c @@ -879,13 +879,13 @@ vips_thumbnail_build( VipsObject *object ) thumbnail->export_profile ); if( vips_colourspace( in, &t[7], VIPS_INTERPRETATION_XYZ, NULL ) || - vips_icc_export( t[7], &t[8], + vips_icc_export( t[7], &t[10], "output_profile", thumbnail->export_profile, "intent", thumbnail->intent, NULL ) ) return( -1 ); - in = t[8]; + in = t[10]; } } else if( thumbnail->linear ) {