refactor(#55): minor changes, use proper declarations, unref image

This commit is contained in:
Tomas Aparicio 2015-09-29 08:45:02 +01:00
parent e83c80c93c
commit 174de89a40
5 changed files with 41 additions and 20 deletions

2
vips.h
View file

@ -227,7 +227,7 @@ vips_webpsave_bridge(VipsImage *in, void **buf, size_t *len, int strip, int qual
}
int
vips_flatten_image(VipsImage *in, VipsImage **out, double background[3]) {
vips_flatten_background_brigde(VipsImage *in, VipsImage **out, double background[3]) {
VipsArrayDouble *vipsBackground = vips_array_double_new(background, 3);
return vips_flatten(in, out,
"background", vipsBackground,