// Release decreases the reference count of the instance and destroys it // when it reaches zero. func (this *Instance) Release() (err error) { if this.ptr == nil { return &VLCError{"Instance is nil"} } C.libvlc_release(this.ptr) return }
// Release decreases the reference count of the instance and destroys it // when it reaches zero. func (this *Instance) Release() (err error) { if this.ptr == nil { return os.EINVAL } C.libvlc_release(this.ptr) return }
func Release() error { if instance == nil { return nil } C.libvlc_release(instance) return getError() }