Fix leak of dock image.

This commit is contained in:
vspader 2009-02-28 22:28:37 -08:00
parent 1805393e20
commit 4dacefe989

View file

@ -48,6 +48,7 @@ static NSString *DockIconPlaybackStatusObservationContext = @"DockIconPlaybackSt
[badgeImage drawInRect:NSMakeRect(92, 24, badgeSize.width,badgeSize.height) fromRect:NSMakeRect(0, 0, badgeSize.width, badgeSize.height) operation:NSCompositeSourceOver fraction:1.0];
[newDockImage unlockFocus];
[NSApp setApplicationIconImage:newDockImage];
[newDockImage release];
}
else
{