set pointer member to nil after destroy
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
DataHoarder 2022-04-18 22:23:43 +02:00
parent afad5c6e5c
commit 73a167e762
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -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
}
}