adium 2243:61ddc5d08e31: I don't really see *how* this mutated w...

commits at adium.im commits at adium.im
Mon May 18 17:42:45 UTC 2009


details:	http://hg.adium.im/adium/rev/61ddc5d08e31
revision:	2243:61ddc5d08e31
author:		David Smith <catfish.man at gmail.com>
date:		Mon May 18 10:41:37 2009 -0700

I don't really see *how* this mutated while enumerating, but the crashlog was unambiguous

diffstat:

 Frameworks/Adium Framework/Source/AIAddressBookUserIconSource.m |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r aed941eb143e -r 61ddc5d08e31 Frameworks/Adium Framework/Source/AIAddressBookUserIconSource.m
--- a/Frameworks/Adium Framework/Source/AIAddressBookUserIconSource.m	Sun May 17 23:44:25 2009 -0400
+++ b/Frameworks/Adium Framework/Source/AIAddressBookUserIconSource.m	Mon May 18 10:41:37 2009 -0700
@@ -155,7 +155,7 @@
 			
 		} else /*if ([setOrObject isKindOfClass:[NSSet class]])*/{
 			//Apply the image to each listObject at the appropriate priority
-			for (AIListObject *listObject in (NSSet *)setOrObject) {
+			for (AIListObject *listObject in [[(NSSet *)setOrObject copy] autorelease]) {
 				[AIUserIcons userIconSource:self
 					   didDetermineUserIcon:image
 							 asynchronously:YES




More information about the commits mailing list