Fix double free issues

This commit is contained in:
Kyle Lemons
2012-07-22 23:36:03 -07:00
parent acb3aed8c3
commit e5fd0ba6e3
5 changed files with 8 additions and 19 deletions

View File

@@ -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
}