Exemplo n.º 1
0
Arquivo: jq.go Projeto: wxf4150/jq-go
// Close closes a JQ state, releasing resources.
func (s *Vm) Close() error {
	if s == nil {
		return nil
	}
	C.jq_teardown(&s.jq)
	s.jq = nil
	return nil
}
Exemplo n.º 2
0
Arquivo: jq.go Projeto: ashb/jqrepl
// Close the handle to libjq and free C resources
func (jq *Jq) Close() {
	if jq._state != nil {
		C.jq_teardown(&jq._state)
		jq._state = nil
	}
	if jq.errorStoreId != 0 {
		globalErrorChannels.Delete(jq.errorStoreId)
		jq.errorStoreId = 0
	}
}
Exemplo n.º 3
0
Arquivo: jq.go Projeto: wxf4150/go-jq
func (jq *JQ) teardown() {
	C.jq_teardown(&jq.state)
}
Exemplo n.º 4
0
Arquivo: jq.go Projeto: vantroy/jq
// Free will release all memory from Jq state
func (j *jqExecutor) free() {
	C.jq_teardown(&j.state)
}