Changeset 12227


Ignore:
Timestamp:
Mar 25, 2011, 1:37:50 AM (11 years ago)
Author:
livings124
Message:

#4055 Fix a memory leak when removing a transfer + data file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r12204 r12227  
    8989int trashDataFile(const char * filename)
    9090{
     91    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
     92   
    9193    if (filename != NULL)
    9294        [Torrent trashFile: [NSString stringWithUTF8String: filename]];
     95   
     96    [pool drain];
    9397    return 0;
    9498}
Note: See TracChangeset for help on using the changeset viewer.