summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEwald Snel <esnel@users.sourceforge.net>2002-03-16 13:25:05 +0000
committerEwald Snel <esnel@users.sourceforge.net>2002-03-16 13:25:05 +0000
commitea336a08c98c8bf14942ff688c45d459208b34de (patch)
tree7e712de9f49207eb5334dc7beadea52d81bd6ae5
parentd6b7423d4574469b150d099ea8a1efb9c882ff34 (diff)
downloadxine-lib-ea336a08c98c8bf14942ff688c45d459208b34de.tar.gz
xine-lib-ea336a08c98c8bf14942ff688c45d459208b34de.tar.bz2
fix for (rare) memory leak
CVS patchset: 1572 CVS date: 2002/03/16 13:25:05
-rw-r--r--src/xine-engine/audio_out.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c
index 4d97da9d1..df2fdc1b1 100644
--- a/src/xine-engine/audio_out.c
+++ b/src/xine-engine/audio_out.c
@@ -17,7 +17,7 @@
* along with self program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_out.c,v 1.45 2002/03/11 19:58:01 jkeil Exp $
+ * $Id: audio_out.c,v 1.46 2002/03/16 13:25:05 esnel Exp $
*
* 22-8-2001 James imported some useful AC3 sections from the previous alsa driver.
* (c) 2001 Andy Lo A Foe <andy@alsaplayer.org>
@@ -544,6 +544,18 @@ static void ao_exit(ao_instance_t *this) {
buf = next;
}
+ buf = this->out_fifo->first;
+
+ while (buf != NULL) {
+
+ next = buf->next;
+
+ free (buf->mem);
+ free (buf);
+
+ buf = next;
+ }
+
free (this->free_fifo);
free (this->out_fifo);
free (this);