Exemple #1
0
// Close the underlying C handle and resources used by this Engine
func (e *Engine) Close() error {
	res := C.cs_close(&e.handle)
	if e.skipdata != nil {
		C.free(unsafe.Pointer(e.skipdata.mnemonic))
	}
	return Errno(res)
}
Exemple #2
0
// Close the underlying C handle and resources used by this Engine
func (e Engine) Close() error {
	res := C.cs_close(e.handle)
	return Errno(res)
}