Beispiel #1
0
func (o *gitObject) Free() {
	runtime.SetFinalizer(o, nil)
	C.git_object_free(o.ptr)
}
Beispiel #2
0
func (obj *Object) Free() {
	C.git_object_free(obj.git_object)
	C.free(unsafe.Pointer(obj.git_object))
}
Beispiel #3
0
func (v *Blob) Free() {
	runtime.SetFinalizer(v, nil)
	C.git_object_free(v.ptr)
}