From 594155a5d72ddfb9830d25194cd1a1c997904d0a Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Tue, 12 Nov 2002 16:52:33 +0000 Subject: use xmalloc instead of malloc so memory footprint can be easily traced and memory is blanked CVS patchset: 3247 CVS date: 2002/11/12 16:52:33 --- src/xine-engine/audio_out.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 5eca9579a..194d724bd 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.79 2002/11/12 00:15:08 guenter Exp $ + * $Id: audio_out.c,v 1.80 2002/11/12 16:52:33 guenter Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe @@ -1085,8 +1085,8 @@ ao_instance_t *ao_new_instance (xine_ao_driver_t *driver, audio_buffer_t *buf; - buf = (audio_buffer_t *) malloc (sizeof (audio_buffer_t)); - buf->mem = malloc (AUDIO_BUF_SIZE); + buf = (audio_buffer_t *) xine_xmalloc (sizeof (audio_buffer_t)); + buf->mem = xine_xmalloc (AUDIO_BUF_SIZE); buf->mem_size = AUDIO_BUF_SIZE; fifo_append (this->free_fifo, buf); @@ -1097,8 +1097,8 @@ ao_instance_t *ao_new_instance (xine_ao_driver_t *driver, audio_buffer_t *buf; - buf = (audio_buffer_t *) malloc (sizeof (audio_buffer_t)); - buf->mem = malloc (4*AUDIO_BUF_SIZE); + buf = (audio_buffer_t *) xine_xmalloc (sizeof (audio_buffer_t)); + buf->mem = xine_xmalloc (4*AUDIO_BUF_SIZE); buf->mem_size = 4*AUDIO_BUF_SIZE; this->frame_buf[i] = buf; -- cgit v1.2.3