Merge pull request #1 from dbouron/master

Fix missing area unref in getpoint()
This commit is contained in:
Dimitri Bouron 2018-08-14 14:32:59 +02:00 committed by GitHub
commit 1c1aeb2262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 );
}