diff --git a/libtransmission/webseed.c b/libtransmission/webseed.c index 4a040e47c..7382f2b1a 100644 --- a/libtransmission/webseed.c +++ b/libtransmission/webseed.c @@ -98,10 +98,8 @@ webseed_free( struct tr_webseed * w ) const tr_info * inf = tr_torrentInfo( tor ); tr_file_index_t i; - for( i = 0; i < inf->fileCount; i++ ) { - if( w->file_urls[i] ) - tr_free( w->file_urls[i] ); - } + for( i=0; ifileCount; ++i ) + tr_free( w->file_urls[i] ); tr_free( w->file_urls ); /* webseed destruct */