Merge pull request #1 from dbouron/master
Fix missing area unref in getpoint()
This commit is contained in:
commit
1c1aeb2262
@ -207,6 +207,7 @@ vips_getpoint( VipsImage *in, double **vector, int *n, int x, int y, ... )
|
||||
}
|
||||
memcpy( *vector, area->data, area->n * area->sizeof_type );
|
||||
*n = area->n;
|
||||
vips_area_unref( area );
|
||||
|
||||
return( 0 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user