// Close a Mrb, this must be called to properly free resources, and // should only be called once. func (m *Mrb) Close() { // Delete all the methods from the state delete(stateMethodTable, m.state) // Close the state C.mrb_close(m.state) }
func (m *MRuby) Close() { if m.mrb != nil { C.mrb_close(m.mrb) } }
// Deletes mruby VM. func (m *MRuby) Delete() { if m.state != nil { C.mrb_close(m.state) m.state = nil } }
func (m *MRuby) Close() { if m.state != nil { C.mrb_close(m.state) } }