adium 4805:7e8948b71619: Proper retain counts prevent crashes. F...

commits at adium.im commits at adium.im
Tue May 1 18:44:53 UTC 2012


details:	http://hg.adium.im/adium/rev/7e8948b71619
revision:	4805:7e8948b71619
branch:		(none)
author:		Frank Dowsett <wixardy at adium.im>
date:		Tue May 01 14:43:59 2012 -0400

Proper retain counts prevent crashes. Fixes #15864

diffs (14 lines):

diff -r 5cf365ce9352 -r 7e8948b71619 Source/RAFBlockEditorWindowController.m
--- a/Source/RAFBlockEditorWindowController.m	Sun Apr 29 23:27:29 2012 -0400
+++ b/Source/RAFBlockEditorWindowController.m	Tue May 01 14:43:59 2012 -0400
@@ -372,8 +372,8 @@
 - (void)accountListChanged:(NSNotification *)note
 {
 	//Update our list of accounts
-    [accountArray release];
-	accountArray = adium.accountController.accounts;
+	[accountArray release];
+	accountArray = [adium.accountController.accounts retain];
 	
 	[accountTable reloadData];
 }




More information about the commits mailing list