From 08778f3f2ccc67212dd7a3ee18c9f09a389527f4 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Tue, 2 Mar 2010 18:44:46 +0000 Subject: [PATCH] Fixes issue 47 --- src/xine-scope.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xine-scope.c b/src/xine-scope.c index f7eed2357..d7913e2da 100644 --- a/src/xine-scope.c +++ b/src/xine-scope.c @@ -132,7 +132,7 @@ scope_dispose( post_plugin_t *this ) xine_post_t* scope_plugin_new( xine_t *xine, xine_audio_port_t *audio_target ) { - scope_plugin_t *scope_plugin = malloc( sizeof(scope_plugin_t) ); + scope_plugin_t *scope_plugin = calloc( 1, sizeof(scope_plugin_t) ); post_plugin_t *post_plugin = (post_plugin_t*)scope_plugin; { @@ -161,7 +161,7 @@ scope_plugin_new( xine_t *xine, xine_audio_port_t *audio_target ) post_plugin->xine = xine; /* scope_plugin_t init */ - scope_plugin->list = malloc( sizeof(MyNode) ); + scope_plugin->list = calloc( 1, sizeof(MyNode) ); scope_plugin->list->next = scope_plugin->list; return &post_plugin->xine_post;