1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-08 10:45:04 +02:00

Fix segfault on watermark applying

This commit is contained in:
DarthSim 2019-06-11 17:11:14 +06:00
parent 75aae2f569
commit 6f889a14da

View File

@ -631,7 +631,7 @@ func (img *vipsImage) ApplyWatermark(opts *watermarkOptions) error {
wm *vipsImage
tmp *C.VipsImage
)
defer wm.Clear()
defer func() { wm.Clear() }()
var err error