Changeset 5013


Ignore:
Timestamp:
Feb 13, 2008, 1:33:29 AM (14 years ago)
Author:
charles
Message:

fix a possible crash on shutdown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r4921 r5013  
    369369    tr_trackerShuttingDown( h );
    370370
    371     for( t=h->torrentList; t!=NULL; t=t->next )
    372         tr_torrentClose( t );
     371    for( t=h->torrentList; t!=NULL; ) {
     372        tr_torrent * tmp = t;
     373        t = t->next;
     374        tr_torrentClose( tmp );
     375    }
    373376
    374377    tr_peerMgrFree( h->peerMgr );
Note: See TracChangeset for help on using the changeset viewer.