Changeset 5010


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

(1.0x) fix a possible crash when deleting a torrent.

Location:
branches/1.0x/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0x/libtransmission/torrent.c

    r4885 r5010  
    998998    if( tor != NULL )
    999999    {
    1000         tr_globalLock( tor->handle );
     1000        tr_handle * handle = tor->handle;
     1001        tr_globalLock( handle );
    10011002
    10021003        tr_torrentClearStatusCallback( tor );
    1003         tr_runInEventThread( tor->handle, closeTorrent, tor );
    1004 
    1005         tr_globalUnlock( tor->handle );
     1004        tr_runInEventThread( handle, closeTorrent, tor );
     1005
     1006        tr_globalUnlock( handle );
    10061007    }
    10071008}
  • branches/1.0x/libtransmission/utils.c

    r4841 r5010  
    6969    {
    7070        const char * str = getenv( "TR_DEBUG_FD" );
    71         int fd;
     71        int fd = 0;
    7272        if( str && *str )
    7373            fd = atoi( str );
Note: See TracChangeset for help on using the changeset viewer.