]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
Revert "jack: Fix leaks when jack_set_hw_constraint() fails"
authorJaroslav Kysela <perex@perex.cz>
Wed, 24 Oct 2018 10:18:42 +0000 (12:18 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 24 Oct 2018 10:21:42 +0000 (12:21 +0200)
This reverts commit f4746667a4a2490f17c2a82b6f421bc3c9bd6de8.

snd_pcm_ioplug_delete() already calls snd_pcm_close()!

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
jack/pcm_jack.c

index 6aaecac8361f994d9bc2443ead8fad43a0474e95..b39835e7c523258c3c46e526e4c309fdaf6f8e9e 100644 (file)
@@ -538,7 +538,6 @@ static int snd_pcm_jack_open(snd_pcm_t **pcmp, const char *name,
        err = jack_set_hw_constraint(jack);
        if (err < 0) {
                snd_pcm_ioplug_delete(&jack->io);
-               snd_pcm_jack_free(jack);
                return err;
        }