fix memleak in sharpen

see https://github.com/jcupitt/libvips/issues/194
Merge branch '7.40'