Changeset 9143 for trunk/gtk/file-list.c


Ignore:
Timestamp:
Sep 19, 2009, 11:35:27 AM (13 years ago)
Author:
charles
Message:

(trunk gtk) #2427: crash on quit when the Preferences window is open

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/file-list.c

    r8941 r9143  
    205205refresh( FileData * data )
    206206{
    207     tr_torrent * tor = tr_torrentFindFromId( tr_core_session( data->core ), data->torrentId );
     207    tr_torrent * tor = NULL;
     208    tr_session * session = tr_core_session( data->core );
     209
     210    if( session != NULL )
     211        tor = tr_torrentFindFromId( session, data->torrentId );
    208212
    209213    if( tor == NULL )
     
    214218    {
    215219        tr_file_index_t fileCount;
    216         data->tor = tr_torrentFindFromId( tr_core_session( data->core ), data->torrentId );
     220        data->tor = tr_torrentFindFromId( session, data->torrentId );
    217221        data->refresh_file_stat = tr_torrentFiles( tor, &fileCount );
    218222
Note: See TracChangeset for help on using the changeset viewer.