mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-16 19:05:54 -07:00
chore(version): bump to 1.0.1
This commit is contained in:
parent
b6a09a5b80
commit
3c3d721bd2
3 changed files with 11 additions and 4 deletions
9
vips.go
9
vips.go
|
|
@ -318,9 +318,12 @@ func vipsSave(image *C.VipsImage, o vipsSaveOptions) ([]byte, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
//When an image has an unsupported color space, vipsPreSave returns the pointer of the image passed to it unmodified.
|
||||
//When this occurs, we must take care to not dereference the original image a second time;
|
||||
//we may otherwise erroneously free the object twice
|
||||
|
||||
// When an image has an unsupported color space, vipsPreSave
|
||||
// returns the pointer of the image passed to it unmodified.
|
||||
// When this occurs, we must take care to not dereference the
|
||||
// original image a second time; we may otherwise erroneously
|
||||
// free the object twice.
|
||||
if tmpImage != image {
|
||||
defer C.g_object_unref(C.gpointer(tmpImage))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue