From bc79f36f8cc90849c0125e977db8d92f69140a96 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 15 Nov 2011 00:09:17 +0000 Subject: [PATCH] #3948 Fix crash with command-option-w --- macosx/AboutWindowController.m | 2 +- macosx/Controller.m | 2 +- macosx/CreatorWindowController.m | 2 +- macosx/StatsWindowController.m | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/macosx/AboutWindowController.m b/macosx/AboutWindowController.m index 105105904..4e08ebd80 100644 --- a/macosx/AboutWindowController.m +++ b/macosx/AboutWindowController.m @@ -65,7 +65,7 @@ AboutWindowController * fAboutBoxInstance = nil; - (void) windowWillClose: (id) sender { - [fAboutBoxInstance release]; + [fAboutBoxInstance autorelease]; fAboutBoxInstance = nil; } diff --git a/macosx/Controller.m b/macosx/Controller.m index 9c28a227b..d80f41a76 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -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) { diff --git a/macosx/CreatorWindowController.m b/macosx/CreatorWindowController.m index dd0848936..09e09a197 100644 --- a/macosx/CreatorWindowController.m +++ b/macosx/CreatorWindowController.m @@ -254,7 +254,7 @@ - (void) windowWillClose: (NSNotification *) notification { - [self release]; + [self autorelease]; } - (void) cancelCreateProgress: (id) sender diff --git a/macosx/StatsWindowController.m b/macosx/StatsWindowController.m index aac1513c0..3c90fb178 100644 --- a/macosx/StatsWindowController.m +++ b/macosx/StatsWindowController.m @@ -126,7 +126,7 @@ tr_session * fLib; { [fTimer invalidate]; - [fStatsWindowInstance release]; + [fStatsWindowInstance autorelease]; fStatsWindowInstance = nil; }