Close will deallocate this error's state explicitly. For more information see the documentation for engine.Close()
()
| 48 | // |
| 49 | // For more information see the documentation for engine.Close() |
| 50 | func (e *Error) Close() { |
| 51 | if e._ptr == nil { |
| 52 | return |
| 53 | } |
| 54 | runtime.SetFinalizer(e, nil) |
| 55 | C.wasmtime_error_delete(e._ptr) |
| 56 | e._ptr = nil |
| 57 | |
| 58 | } |