mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
reverse r13248-r13250, since ARC doesn't support 32-bit.
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
if ((self = [super initWithWindowNibName: @"AddMagnetWindow"]))
|
||||
{
|
||||
fTorrent = torrent;
|
||||
fDestination = [path stringByExpandingTildeInPath];
|
||||
fDestination = [[path stringByExpandingTildeInPath] retain];
|
||||
|
||||
fController = controller;
|
||||
|
||||
@@ -106,6 +106,10 @@
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
[fDestination release];
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (Torrent *) torrent
|
||||
@@ -214,7 +218,8 @@
|
||||
destination = [destination stringByExpandingTildeInPath];
|
||||
if (!fDestination || ![fDestination isEqualToString: destination])
|
||||
{
|
||||
fDestination = destination;
|
||||
[fDestination release];
|
||||
fDestination = [destination retain];
|
||||
|
||||
[fTorrent changeDownloadFolderBeforeUsing: fDestination];
|
||||
}
|
||||
@@ -224,6 +229,7 @@
|
||||
|
||||
ExpandedPathToIconTransformer * iconTransformer = [[ExpandedPathToIconTransformer alloc] init];
|
||||
[fLocationImageView setImage: [iconTransformer transformedValue: fDestination]];
|
||||
[iconTransformer release];
|
||||
}
|
||||
|
||||
- (void) setGroupsMenu
|
||||
@@ -249,6 +255,7 @@
|
||||
if ([[alert suppressionButton] state] == NSOnState)
|
||||
[[NSUserDefaults standardUserDefaults] setBool: NO forKey: @"WarningFolderDataSameName"];
|
||||
|
||||
[alert release];
|
||||
|
||||
if (returnCode == NSAlertSecondButtonReturn)
|
||||
[self performSelectorOnMainThread: @selector(confirmAdd) withObject: nil waitUntilDone: NO];
|
||||
|
||||
Reference in New Issue
Block a user