diff --git a/libebur128.go b/libebur128.go index 01cb141..bb355b7 100644 --- a/libebur128.go +++ b/libebur128.go @@ -179,5 +179,6 @@ func (s *State) AddShort(src []int16) error { func (s *State) Close() { if s.p != nil { C.ebur128_destroy(&s.p) + s.p = nil } }