diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-03-01 09:29:49 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-03-01 09:29:49 +0000 |
commit | 99a4dbf75cc3f7a40354b6c6596f4ea7aa373c52 (patch) | |
tree | 806a86599b236768bb1742f16d88053d5418d931 /src/xine-engine/audio_out.c | |
parent | fa19bf6548378144d233d9cd3b898b98c97f3748 (diff) | |
download | xine-lib-99a4dbf75cc3f7a40354b6c6596f4ea7aa373c52.tar.gz xine-lib-99a4dbf75cc3f7a40354b6c6596f4ea7aa373c52.tar.bz2 |
memleak fixes from ewald snel
CVS patchset: 1535
CVS date: 2002/03/01 09:29:49
Diffstat (limited to 'src/xine-engine/audio_out.c')
-rw-r--r-- | src/xine-engine/audio_out.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 8ec3094c8..2c0bd80d4 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.42 2002/02/18 15:55:44 guenter Exp $ + * $Id: audio_out.c,v 1.43 2002/03/01 09:29:50 guenter Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe <andy@alsaplayer.org> @@ -523,7 +523,29 @@ static void ao_close(ao_instance_t *this) { } static void ao_exit(ao_instance_t *this) { + + audio_buffer_t *buf, *next; + this->driver->exit(this->driver); + + free (this->frame_buffer); + free (this->zero_space); + + buf = this->free_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); } static uint32_t ao_get_capabilities (ao_instance_t *this) { |