From a9f2f659de2a6304b484eeeb82dcd395c65fb284 Mon Sep 17 00:00:00 2001 From: Michael Wu Date: Wed, 20 Mar 2013 18:31:36 -0400 Subject: [PATCH] Bug 852966 - Free audio buffers when freeing stream in opensl cubeb backend, r=kinetik --- media/libcubeb/src/cubeb_opensl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/media/libcubeb/src/cubeb_opensl.c b/media/libcubeb/src/cubeb_opensl.c index 27c6a61a8c15..5f73dd3c644d 100644 --- a/media/libcubeb/src/cubeb_opensl.c +++ b/media/libcubeb/src/cubeb_opensl.c @@ -357,6 +357,10 @@ opensl_stream_destroy(cubeb_stream * stm) { if (stm->playerObj) (*stm->playerObj)->Destroy(stm->playerObj); + int i; + for (i = 0; i < NBUFS; i++) { + free(stm->queuebuf[i]); + } free(stm); }