Ignore:
Timestamp:
Jan 1, 2010, 9:12:04 PM (13 years ago)
Author:
livings124
Message:

happy new year!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r9843 r9844  
    22 * $Id$
    33 *
    4  * Copyright (c) 2006-2009 Transmission authors and contributors
     4 * Copyright (c) 2006-2010 Transmission authors and contributors
    55 *
    66 * Permission is hereby granted, free of charge, to any person obtaining a
     
    16081608    {
    16091609        NSInteger count = [self fileCount];
    1610         NSMutableArray * fileList = [[NSMutableArray alloc] initWithCapacity: count],
    1611                     * flatFileList = [[NSMutableArray alloc] initWithCapacity: count];
     1610        NSMutableArray * fileList = [NSMutableArray arrayWithCapacity: count],
     1611                    * flatFileList = [NSMutableArray arrayWithCapacity: count];
    16121612       
    16131613        for (NSInteger i = 0; i < count; i++)
     
    16271627                FileListNode * node;
    16281628                for (node in fileList)
    1629                     if ([node isFolder] && [[node name] isEqualToString: name])
     1629                    if ([[node name] isEqualToString: name] && [node isFolder])
    16301630                        break;
    16311631               
     
    16531653       
    16541654        fFileList = [[NSArray alloc] initWithArray: fileList];
    1655         [fileList release];
    1656        
    16571655        fFlatFileList = [[NSArray alloc] initWithArray: flatFileList];
    1658         [flatFileList release];
    16591656    }
    16601657    else
Note: See TracChangeset for help on using the changeset viewer.