diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-11-12 16:52:33 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-11-12 16:52:33 +0000 |
commit | 594155a5d72ddfb9830d25194cd1a1c997904d0a (patch) | |
tree | 1cdc04212b7a6452235bec71875801d6df381605 | |
parent | 85b8f4f3384139cde46b121d7b77b6231a7332a2 (diff) | |
download | xine-lib-594155a5d72ddfb9830d25194cd1a1c997904d0a.tar.gz xine-lib-594155a5d72ddfb9830d25194cd1a1c997904d0a.tar.bz2 |
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
-rw-r--r-- | src/xine-engine/audio_out.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 <andy@alsaplayer.org> @@ -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; |