// Release decreases the reference count by 1.
// When the reference count goes to zero, the memory is freed.
// Release may be called simultaneously from multiple goroutines.
Release decreases the reference count by 1.
When the reference count goes to zero, the memory is freed.
Release may be called simultaneously from multiple goroutines.
// Release decreases the reference count by 1 . // When the reference count goes to zero the memory is freed . // Release may be called simultaneously from multiple goroutines .
func (df *DataFrame) Release() {
	refs := atomic.AddInt64(&df.refs, -1)
	debug.Assert(refs >= 0, "too many releases")
	if refs == 0 {
		for i := range df.cols {
			df.cols[i].Release()
		}
		df.cols = nil
	}
}
func ( df * DataFrame ) Release ( ) { refs := atomic . AddInt64 ( & df . refs , - 1 ) debug . Assert ( refs >= 0 , " " ) if refs == 0 { for i := range df . cols { df . cols [ i ] . Release ( ) } df . cols = nil } }
Release decreases the reference count by 1.
Release decreases the reference count by 1 .