Commit acccfe4a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

podcast: reduce scope of one variable

parent f4bb4588
......@@ -173,7 +173,6 @@ static void Close( vlc_object_t *p_this )
services_discovery_t *p_sd = ( services_discovery_t* )p_this;
services_discovery_sys_t *p_sys = p_sd->p_sys;
vlc_object_t *pl = p_sd->obj.parent;
int i;
vlc_cancel (p_sys->thread);
vlc_join (p_sys->thread, NULL);
......@@ -183,7 +182,7 @@ static void Close( vlc_object_t *p_this )
vlc_cond_destroy( &p_sys->wait );
vlc_mutex_destroy( &p_sys->lock );
for( i = 0; i < p_sys->i_input; i++ )
for( int i = 0; i < p_sys->i_input; i++ )
{
input_thread_t *p_input = p_sd->p_sys->pp_input[i];
if( !p_input )
......@@ -195,11 +194,15 @@ static void Close( vlc_object_t *p_this )
p_sd->p_sys->pp_input[i] = NULL;
}
free( p_sd->p_sys->pp_input );
for( i = 0; i < p_sys->i_urls; i++ ) free( p_sys->ppsz_urls[i] );
for( int i = 0; i < p_sys->i_urls; i++ )
free( p_sys->ppsz_urls[i] );
free( p_sys->ppsz_urls );
for( i = 0; i < p_sys->i_items; i++ )
for( int i = 0; i < p_sys->i_items; i++ )
input_item_Release( p_sys->pp_items[i] );
free( p_sys->pp_items );
free( p_sys->psz_request );
free( p_sys );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment