Ignore:
Timestamp:
Apr 26, 2009, 12:51:51 AM (13 years ago)
Author:
charles
Message:

(trunk libT) need feedback from Mac users on this change. On Linux, it gets rid of the inactive-memory-grows-during-torrent-verification behavior that's often reported as a bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/verify.c

    r8244 r8291  
    7676        {
    7777            char * filename = tr_buildPath( tor->downloadDir, file->name, NULL );
    78             fp = tr_open_file_for_reading( filename, TRUE );
     78            fp = tr_open_file_for_scanning( filename );
    7979            /* fprintf( stderr, "opening file #%d (%s) -- %p\n", fileIndex, filename, fp ); */
    8080            tr_free( filename );
     
    130130        {
    131131            /* fprintf( stderr, "closing file\n" ); */
    132             if( fp != NULL ) { fclose( fp ); fp = NULL; }
     132            if( fp != NULL ) { tr_close_file( fp ); fp = NULL; }
    133133            ++fileIndex;
    134134            filePos = 0;
     
    138138    /* cleanup */
    139139    if( fp != NULL )
    140         fclose( fp );
     140        tr_close_file( fp );
    141141    tr_free( buffer );
    142142
Note: See TracChangeset for help on using the changeset viewer.