pcm direct plugins - fix memory leak (sconf must be deleted)

This commit is contained in:
Jaroslav Kysela 2006-10-12 14:42:45 +02:00
parent 1300e70573
commit 10cca7c03b
3 changed files with 3 additions and 6 deletions

View file

@ -1162,8 +1162,7 @@ int _snd_pcm_dmix_open(snd_pcm_t **pcmp, const char *name,
err = snd_pcm_dmix_open(pcmp, name, &dopen, &params,
root, sconf, stream, mode);
if (err < 0)
snd_config_delete(sconf);
snd_config_delete(sconf);
return err;
}
#ifndef DOC_HIDDEN