Added name support

This commit is contained in:
Abramo Bagnara 2000-10-10 09:11:07 +00:00
parent 5b3e5e6c74
commit 66df4a7e65
13 changed files with 77 additions and 47 deletions

View file

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