Ver Fonte

Clear vips error after fetching it

DarthSim há 4 anos atrás
pai
commit
3ae0f3abc1
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      vips/vips.go

+ 1 - 0
vips/vips.go

@@ -116,6 +116,7 @@ func Cleanup() {
 }
 
 func Error() error {
+	defer C.vips_error_clear()
 	return ierrors.NewUnexpected(C.GoString(C.vips_error_buffer()), 1)
 }