Paranoia zeroing

This commit is contained in:
Abramo Bagnara 2000-06-11 13:32:10 +00:00
parent c956c5a024
commit 34d8243828

View file

@ -645,6 +645,7 @@ int snd_pcm_munmap_data(snd_pcm_t *pcm, int stream)
if ((err = pcm->ops->munmap_data(pcm, stream, str->mmap_data, str->mmap_data_size)) < 0)
return err;
free(str->channels);
str->channels = 0;
str->mmap_data = 0;
str->mmap_data_size = 0;
return 0;