mirror of
https://github.com/transmission/transmission.git
synced 2026-05-02 14:42:37 +01:00
Transition to ARC
This commit is contained in:
@@ -33,15 +33,13 @@
|
||||
fSelected = NO;
|
||||
|
||||
//expects the icon to currently be set as the image
|
||||
fIcon = [[self image] retain];
|
||||
fIcon = [self image];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
[fIcon release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) setControlView: (NSView *) controlView
|
||||
@@ -96,7 +94,6 @@
|
||||
tabRect = NSMakeRect(0.0, 1.0, NSWidth(tabRect) - 1.0, NSHeight(tabRect) - 2.0);
|
||||
|
||||
[gradient drawInRect: tabRect angle: 270.0];
|
||||
[gradient release];
|
||||
|
||||
if (fIcon)
|
||||
{
|
||||
@@ -112,7 +109,6 @@
|
||||
[tabImage unlockFocus];
|
||||
|
||||
[self setImage: tabImage];
|
||||
[tabImage release];
|
||||
}
|
||||
|
||||
- (void) updateControlTint: (NSNotification *) notification
|
||||
|
||||
Reference in New Issue
Block a user