зеркало из https://github.com/mozilla/gecko-dev.git
Bug 852966 - Free audio buffers when freeing stream in opensl cubeb backend, r=kinetik
This commit is contained in:
Родитель
991a7a0eca
Коммит
a9f2f659de
|
@ -357,6 +357,10 @@ opensl_stream_destroy(cubeb_stream * stm)
|
||||||
{
|
{
|
||||||
if (stm->playerObj)
|
if (stm->playerObj)
|
||||||
(*stm->playerObj)->Destroy(stm->playerObj);
|
(*stm->playerObj)->Destroy(stm->playerObj);
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < NBUFS; i++) {
|
||||||
|
free(stm->queuebuf[i]);
|
||||||
|
}
|
||||||
free(stm);
|
free(stm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче