Changeset 1166


Ignore:
Timestamp:
Dec 7, 2006, 4:40:36 AM (15 years ago)
Author:
livings124
Message:

release announce list when removing torrent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/multitracker/libtransmission/transmission.c

    r1163 r1166  
    689689void tr_torrentClose( tr_handle_t * h, tr_torrent_t * tor )
    690690{
     691    int i;
     692    tr_announce_list_item_t * currentAnnounce, * nextAnnounce;
     693   
    691694    tr_info_t * inf = &tor->info;
    692695
     
    714717    free( inf->pieces );
    715718    free( inf->files );
     719   
     720    for( i = 0; i < inf->trackerAnnounceTiers; i++ )
     721    {
     722        currentAnnounce = inf->trackerAnnounceList[0];
     723        while( currentAnnounce != NULL )
     724        {
     725            nextAnnounce = currentAnnounce->nextItem;
     726            free( currentAnnounce );
     727            currentAnnounce = nextAnnounce;
     728        }
     729    }
    716730
    717731    if( tor->prev )
Note: See TracChangeset for help on using the changeset viewer.