fix memleak in sharpen

see https://github.com/jcupitt/libvips/issues/194
This commit is contained in:
John Cupitt 2014-11-11 20:42:26 +00:00
parent 965936307b
commit 8a44d6f7b3
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
27/10/14 started 7.40.12 27/10/14 started 7.40.12
- better tiff detection (Lovell) - better tiff detection (Lovell)
- fix memleak in sharpen (Lovell)
8/10/14 started 7.40.11 8/10/14 started 7.40.11
- rework extra band handling for colour functions - rework extra band handling for colour functions

View File

@ -251,7 +251,7 @@ vips_sharpen_build( VipsObject *object )
sharpen->ix2 = ix2 = sharpen->x2 * 327.67; sharpen->ix2 = ix2 = sharpen->x2 * 327.67;
sharpen->ix3 = ix3 = sharpen->x3 * 327.67; sharpen->ix3 = ix3 = sharpen->x3 * 327.67;
if( !(sharpen->lut = VIPS_ARRAY( sharpen->out, ix2 + ix3 + 1, int )) ) if( !(sharpen->lut = VIPS_ARRAY( object, ix2 + ix3 + 1, int )) )
return( -1 ); return( -1 );
for( i = 0; i < ix1; i++ ) { for( i = 0; i < ix1; i++ ) {