Changeset 67

Show
Ignore:
Timestamp:
12/27/05 14:10:21 (3 years ago)
Author:
mrowe
Message:

Don't over-retain the NSMutableArray and NSArrays in -[SSHAgent currentKeysOnAgent]. Closes #28.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Libs/SSHAgent.m

    r41 r67  
    749749        lines = [theOutput componentsSeparatedByString:@"\n"]; 
    750750 
    751         keys = [[NSMutableArray array] retain]; 
     751        keys = [NSMutableArray array]; 
    752752 
    753753        for(i=0; i < [lines count]; i++) 
     
    767767                                type = @"?"; 
    768768 
    769                         key = [[NSArray arrayWithObjects: 
     769                        key = [NSArray arrayWithObjects: 
    770770                                        [NSString stringWithString:[[columns objectAtIndex:2] stringByAbbreviatingWithTildeInPath]], 
    771771                                        [NSString stringWithString:[columns objectAtIndex:1]],  
    772772                                        [NSString stringWithString:type], 
    773                                         nil] retain]; 
    774  
     773                                        nil]; 
    775774                        [keys addObject:key]; 
    776775                }