]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Added missed snd_ctl_close in snd_pcm_open_subdevice...
authorJaroslav Kysela <perex@perex.cz>
Thu, 7 Oct 1999 10:24:29 +0000 (10:24 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 7 Oct 1999 10:24:29 +0000 (10:24 +0000)
src/pcm/pcm.c

index 7046df8b9bd27a923cf8b16e6616b68c05babcbf..a55d191d9eafdbc6b344d99cf369a0465ed8ba69 100644 (file)
@@ -108,6 +108,7 @@ int snd_pcm_open_subdevice(snd_pcm_t **handle, int card, int device, int subdevi
                        goto __again;
                }
        }
+       snd_ctl_close(ctl);
        pcm = (snd_pcm_t *) calloc(1, sizeof(snd_pcm_t));
        if (pcm == NULL) {
                close(fd);