fix leak: free s->mix.{decbuf,resampbuf}

This commit is contained in:
Alexandre Ratchov 2012-11-02 14:33:28 +01:00
parent fe60df1e1f
commit 8bdc288d6b
1 changed files with 4 additions and 0 deletions

View File

@ -653,6 +653,10 @@ dev_mix_cycle(struct dev *d)
if (s->pstate == SLOT_STOP && s->mix.buf.used == 0) {
s->pstate = SLOT_INIT;
abuf_done(&s->mix.buf);
if (s->mix.decbuf)
xfree(s->mix.decbuf);
if (s->mix.resampbuf)
xfree(s->mix.resampbuf);
s->ops->eof(s->arg);
*ps = s->next;
continue;