Isolate dispose cause the memory leak
wwsheng009 opened this issue · comments
Isolate dispose cause the memory leak。
func (i *Isolate) Dispose() {
if i.ptr == nil {
return
}
C.IsolateDispose(i.ptr)
i.ptr = nil
i.cbs = nil //shoud release the cbs,otherwise the memory will leak。
}