avoid unneeded retain/release in badger
This commit is contained in:
parent
787e17135a
commit
544c0c1dc4
|
@ -174,10 +174,9 @@
|
||||||
//update dock badge
|
//update dock badge
|
||||||
if (baseChange || fSpeedBadge || speedChange)
|
if (baseChange || fSpeedBadge || speedChange)
|
||||||
{
|
{
|
||||||
if (!dockIcon)
|
[NSApp setApplicationIconImage: dockIcon ? dockIcon : fDockIcon];
|
||||||
dockIcon = [fDockIcon retain];
|
if (dockIcon)
|
||||||
[NSApp setApplicationIconImage: dockIcon];
|
[dockIcon release];
|
||||||
[dockIcon release];
|
|
||||||
|
|
||||||
fSpeedBadge = speedChange;
|
fSpeedBadge = speedChange;
|
||||||
}
|
}
|
||||||
|
@ -202,6 +201,7 @@
|
||||||
{
|
{
|
||||||
fCompleted = 0;
|
fCompleted = 0;
|
||||||
fCompletedBadged = 0;
|
fCompletedBadged = 0;
|
||||||
|
fSpeedBadge = NO;
|
||||||
[NSApp setApplicationIconImage: [NSImage imageNamed: @"NSApplicationIcon"]];
|
[NSApp setApplicationIconImage: [NSImage imageNamed: @"NSApplicationIcon"]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue