mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Added name support
This commit is contained in:
parent
5b3e5e6c74
commit
66df4a7e65
13 changed files with 77 additions and 47 deletions
|
|
@ -73,6 +73,8 @@ int snd_pcm_close(snd_pcm_t *pcm)
|
|||
if ((err = pcm->ops->close(pcm->op_arg)) < 0)
|
||||
ret = err;
|
||||
pcm->valid_setup = 0;
|
||||
if (pcm->name)
|
||||
free(pcm->name);
|
||||
free(pcm);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue