summaryrefslogtreecommitdiff
path: root/src/libmusepack/xine_musepack_decoder.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-09 15:55:33 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-09 15:55:33 +0200
commit1e71123be300aa08325aca68f12d54e7149bd820 (patch)
tree00f2e457fd5a860d70deb5008eb44c60da0dbbde /src/libmusepack/xine_musepack_decoder.c
parentc99cd9519a56b2d7c60fa30e9fecd02f08336671 (diff)
downloadxine-lib-1e71123be300aa08325aca68f12d54e7149bd820.tar.gz
xine-lib-1e71123be300aa08325aca68f12d54e7149bd820.tar.bz2
Remove a new bunch of xine_malloc() calls.
Also don't reset memory after it's allocated if we do that with calloc.
Diffstat (limited to 'src/libmusepack/xine_musepack_decoder.c')
-rw-r--r--src/libmusepack/xine_musepack_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmusepack/xine_musepack_decoder.c b/src/libmusepack/xine_musepack_decoder.c
index 39d17f574..115532e86 100644
--- a/src/libmusepack/xine_musepack_decoder.c
+++ b/src/libmusepack/xine_musepack_decoder.c
@@ -214,7 +214,7 @@ static void mpc_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
this->file_size = buf->decoder_info[0];
/* Initialise the data accumulation buffer */
- this->buf = xine_xmalloc(INIT_BUFSIZE);
+ this->buf = calloc(1, INIT_BUFSIZE);
this->buf_max = INIT_BUFSIZE;
this->read = 0;
this->size = 0;