fix memleak in sharpen
see https://github.com/jcupitt/libvips/issues/194
This commit is contained in:
parent
965936307b
commit
8a44d6f7b3
@ -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
|
||||||
|
@ -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++ ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user