Browse Source

Clear vips error after fetching it

DarthSim 3 years ago
parent
commit
3ae0f3abc1
1 changed files with 1 additions and 0 deletions
  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)
 }