set pointer member to nil after destroy
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
afad5c6e5c
commit
73a167e762
|
@ -179,5 +179,6 @@ func (s *State) AddShort(src []int16) error {
|
||||||
func (s *State) Close() {
|
func (s *State) Close() {
|
||||||
if s.p != nil {
|
if s.p != nil {
|
||||||
C.ebur128_destroy(&s.p)
|
C.ebur128_destroy(&s.p)
|
||||||
|
s.p = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue