Merged revisions 7582 via svnmerge from

/branches/1.2


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2005-12-21 20:02:36 +00:00
parent a3bd5d11d3
commit 134c3757d8

View File

@@ -1109,8 +1109,10 @@ int unload_module()
ast_channel_unregister(&alsa_tech);
for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
ast_cli_unregister(myclis + x);
snd_pcm_close(alsa.icard);
snd_pcm_close(alsa.ocard);
if (alsa.icard)
snd_pcm_close(alsa.icard);
if (alsa.ocard)
snd_pcm_close(alsa.ocard);
if (sndcmd[0] > 0) {
close(sndcmd[0]);
close(sndcmd[1]);