Fix segfaults on watermarking in somme cases

This commit is contained in:
DarthSim
2019-11-14 18:47:04 +06:00
parent ba3e20b865
commit a96e25a442
2 changed files with 7 additions and 0 deletions

View File

@@ -4,6 +4,9 @@
### Changed
- Boolean processing options such as `enlarge` and `extend` are properly parsed. `1`, `t`, `TRUE`, `true`, `True` are truthy, `0`, `f`, `F`, `FALSE`, `false`, `False` are falsy. All other values are treated as falsy and generate a warning message.
### Fixed
- Fix segfaults on watermarking in somme cases
## [2.6.2] - 2019-11-11
### Fixed
- Fix `format` option in presets.

View File

@@ -252,6 +252,10 @@ func applyWatermark(img *vipsImage, wmData *imageData, opts *watermarkOptions, f
return err
}
if err := img.CopyMemory(); err != nil {
return err
}
wm := new(vipsImage)
defer wm.Clear()