Merge pull request #1061 from criteo-forks/master

Fix missing area unref in getpoint()
This commit is contained in:
John Cupitt 2018-08-14 18:00:39 +01:00 committed by GitHub
commit 68fd9c8de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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