Adium

Changeset 23033

Show
Ignore:
Timestamp:
04/03/2008 11:17:54 AM (8 months ago)
Author:
evands
Message:

Fixed initialization of AITextAttributes with alloc/init; we need to initialize the dictionary in all cases.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/AIUtilities Framework/Source/AITextAttributes.m

    r19270 r23033  
    4747{ 
    4848        if ((self = [self init])) { 
    49                 dictionary = [[NSMutableDictionary alloc] init]; 
    50  
    5149                fontFamilyName = [inFamilyName retain]; 
    5250                fontTraitsMask = inTraits; 
     
    6058{ 
    6159        if ((self = [self init])) { 
     60                [dictionary release]; 
    6261                dictionary = [inAttributes mutableCopy]; 
    6362 
     
    8180{ 
    8281        if ((self = [super init])) { 
    83                 dictionary = nil; 
     82                dictionary = [[NSMutableDictionary alloc] init]; 
     83                 
    8484                fontFamilyName = nil; 
    8585                fontTraitsMask = 0;