Changeset 3080


Ignore:
Timestamp:
Sep 16, 2007, 12:40:15 AM (15 years ago)
Author:
livings124
Message:

fix small memory leak that has been around forever

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r3073 r3080  
    26482648- (void) doNothing: (id) sender {}
    26492649
    2650 - (NSToolbarItem *) toolbar: (NSToolbar *) t itemForItemIdentifier:
    2651     (NSString *) ident willBeInsertedIntoToolbar: (BOOL) flag
     2650- (NSToolbarItem *) toolbar: (NSToolbar *) t itemForItemIdentifier: (NSString *) ident willBeInsertedIntoToolbar: (BOOL) flag
    26522651{
    26532652    NSToolbarItem * item = [[NSToolbarItem alloc] initWithItemIdentifier: ident];
     
    27442743    }
    27452744
    2746     return item;
     2745    return [item autorelease];
    27472746}
    27482747
  • trunk/macosx/InfoWindowController.m

    r3075 r3080  
    793793        else if ([ident isEqualToString: @"Encryption"])
    794794        {
    795             /*if ([[peer objectForKey: @"Encryption"] boolValue])
     795            if ([[peer objectForKey: @"Encryption"] boolValue])
    796796            {
    797797                if (!fLockImage)
     
    799799                return fLockImage;
    800800            }
    801             else*/
     801            else
    802802                return nil;
    803803        }
     
    864864                                    [[peer objectForKey: @"Progress"] floatValue] * 100.0]];
    865865           
    866             /*if ([[peer objectForKey: @"Encryption"] boolValue])
    867                 [components addObject: NSLocalizedString(@"Encrypted Connection", "Inspector -> Peers tab -> table row tooltip")];*/
     866            if ([[peer objectForKey: @"Encryption"] boolValue])
     867                [components addObject: NSLocalizedString(@"Encrypted Connection", "Inspector -> Peers tab -> table row tooltip")];
    868868        }
    869869       
  • trunk/macosx/PrefsController.m

    r3066 r3080  
    210210    }
    211211
    212     return item;
     212    return [item autorelease];
    213213}
    214214
  • trunk/macosx/Torrent.m

    r3063 r3080  
    10401040                [dic setObject: [NSNumber numberWithFloat: peer->downloadFromRate] forKey: @"DL From Rate"];
    10411041           
    1042             //[dic setObject: [NSNumber numberWithBool: peer->isEncrypted] forKey: @"Encryption"];
     1042            [dic setObject: [NSNumber numberWithBool: /*peer->isEncrypted*/NO] forKey: @"Encryption"];
    10431043           
    10441044            [dic setObject: [NSString stringWithCString: (char *) peer->client encoding: NSUTF8StringEncoding] forKey: @"Client"];
Note: See TracChangeset for help on using the changeset viewer.