Fixes issue 47

This commit is contained in:
John Maguire 2010-03-02 18:44:46 +00:00
parent 5e503cbe64
commit 08778f3f2c
1 changed files with 2 additions and 2 deletions

View File

@ -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;