From ea336a08c98c8bf14942ff688c45d459208b34de Mon Sep 17 00:00:00 2001 From: Ewald Snel Date: Sat, 16 Mar 2002 13:25:05 +0000 Subject: fix for (rare) memory leak CVS patchset: 1572 CVS date: 2002/03/16 13:25:05 --- src/xine-engine/audio_out.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src') 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 @@ -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); -- cgit v1.2.3