mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
Added snd_pcm_munmap() call to snd_pcm_close() - free all resources
This commit is contained in:
parent
501342abbb
commit
b004a9d791
2 changed files with 4 additions and 2 deletions
|
|
@ -476,8 +476,8 @@ int snd_pcm_munmap(snd_pcm_t *pcm)
|
|||
return err;
|
||||
free(pcm->mmap_channels);
|
||||
free(pcm->running_areas);
|
||||
pcm->mmap_channels = 0;
|
||||
pcm->running_areas = 0;
|
||||
pcm->mmap_channels = NULL;
|
||||
pcm->running_areas = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue