Changeset 2290


Ignore:
Timestamp:
Jul 4, 2007, 8:29:25 PM (15 years ago)
Author:
livings124
Message:

hopefully really fix that badging issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Badger.m

    r2289 r2290  
    6565       
    6666        //force image to reload - copy does not work
    67         NSImage * icon = [NSImage imageNamed: @"NSApplicationIcon"];
     67        NSImage * icon = [[NSImage imageNamed: @"NSApplicationIcon"] copy];
    6868        NSSize iconSize = [icon size];
    6969       
     
    7272        fDockIcon = [[NSImage alloc] initWithSize: iconSize];
    7373        [fDockIcon addRepresentation: [icon bestRepresentationForDevice: nil]];
     74        [icon release];
    7475       
    7576        if (fCompleted > 0)
     
    8384            badgeRect.origin.x = iconSize.width - badgeRect.size.width;
    8485            badgeRect.origin.y = iconSize.height - badgeRect.size.height;
    85                                        
     86           
    8687            [fDockIcon lockFocus];
    8788           
Note: See TracChangeset for help on using the changeset viewer.