mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
#3948 Fix crash with command-option-w
This commit is contained in:
@@ -65,7 +65,7 @@ AboutWindowController * fAboutBoxInstance = nil;
|
||||
|
||||
- (void) windowWillClose: (id) sender
|
||||
{
|
||||
[fAboutBoxInstance release];
|
||||
[fAboutBoxInstance autorelease];
|
||||
fAboutBoxInstance = nil;
|
||||
}
|
||||
|
||||
|
||||
@@ -887,7 +887,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
- (void) askOpenConfirmed: (AddWindowController *) addController add: (BOOL) add
|
||||
{
|
||||
Torrent * torrent = [addController torrent];
|
||||
[addController release];
|
||||
[addController autorelease];
|
||||
|
||||
if (add)
|
||||
{
|
||||
|
||||
@@ -254,7 +254,7 @@
|
||||
|
||||
- (void) windowWillClose: (NSNotification *) notification
|
||||
{
|
||||
[self release];
|
||||
[self autorelease];
|
||||
}
|
||||
|
||||
- (void) cancelCreateProgress: (id) sender
|
||||
|
||||
@@ -126,7 +126,7 @@ tr_session * fLib;
|
||||
{
|
||||
[fTimer invalidate];
|
||||
|
||||
[fStatsWindowInstance release];
|
||||
[fStatsWindowInstance autorelease];
|
||||
fStatsWindowInstance = nil;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user