Adium

Changeset 21652

Show
Ignore:
Timestamp:
11/12/2007 06:18:34 PM (1 year ago)
Author:
evands
Message:

Call -[NSImage setDataRetained:YES] on incoming images from the server and from address book since these images may be scaled in multiple ways. This was done in [21560] for cached images; it needs to be done in these places, as well. Fixes #8181

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/Adium Framework/Source/AIListContact.m

    r21307 r21652  
    390390        //Set the User Icon as an NSImage 
    391391        NSImage *userIcon = [[NSImage alloc] initWithData:iconData]; 
     392        [userIcon setDataRetained:YES]; 
    392393        [self setStatusObject:userIcon forKey:KEY_USER_ICON notify:NotifyLater]; 
    393394        [userIcon release]; 
  • trunk/Source/ESAddressBookIntegrationPlugin.m

    r21197 r21652  
    599599                //Apply the image to the appropriate listObject 
    600600                image = (inData ? [[[NSImage alloc] initWithData:inData] autorelease] : nil); 
    601                  
     601                [image setDataRetained:YES]; 
     602 
    602603                //Get the object from our tracking dictionary 
    603604                setOrObject = [trackingDict objectForKey:tagNumber];