Fix double free issues
This commit is contained in:
@@ -7,7 +7,6 @@ import "C"
|
||||
import (
|
||||
"log"
|
||||
"reflect"
|
||||
"runtime"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -44,9 +43,6 @@ func NewContext() *Context {
|
||||
}
|
||||
}()
|
||||
|
||||
// This doesn't seem to actually get called. Sigh.
|
||||
runtime.SetFinalizer(c, (*Context).Close)
|
||||
|
||||
return c
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user