summaryrefslogtreecommitdiff
path: root/src/combined/wavpack_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/combined/wavpack_decoder.c')
-rw-r--r--src/combined/wavpack_decoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/combined/wavpack_decoder.c b/src/combined/wavpack_decoder.c
index 80a14e678..fdf6a5514 100644
--- a/src/combined/wavpack_decoder.c
+++ b/src/combined/wavpack_decoder.c
@@ -293,7 +293,7 @@ static void wavpack_dispose (audio_decoder_t *this_gen) {
}
static audio_decoder_t *open_plugin (audio_decoder_class_t *class_gen, xine_stream_t *stream) {
- wavpack_decoder_t * const this = (wavpack_decoder_t *) xine_xmalloc (sizeof (wavpack_decoder_t));
+ wavpack_decoder_t * const this = calloc(1, sizeof (wavpack_decoder_t));
this->audio_decoder.decode_data = wavpack_decode_data;
this->audio_decoder.reset = wavpack_reset;
@@ -314,7 +314,7 @@ static audio_decoder_t *open_plugin (audio_decoder_class_t *class_gen, xine_stre
void *decoder_wavpack_init_plugin (xine_t *xine, void *data) {
wavpack_class_t *this;
- this = (wavpack_class_t *) xine_xmalloc (sizeof (wavpack_class_t));
+ this = calloc(1, sizeof (wavpack_class_t));
this->decoder_class.open_plugin = open_plugin;
this->decoder_class.identifier = "wavpackdec";