adium 2183:69aa3bfc0963: Avoid trying to remove nil from the eve...

commits at adium.im commits at adium.im
Thu May 14 04:09:43 UTC 2009


details:	http://hg.adium.im/adium/rev/69aa3bfc0963
revision:	2183:69aa3bfc0963
author:		Zachary West <zacw at adium.im>
date:		Thu May 14 00:09:23 2009 -0400

Avoid trying to remove nil from the events dictionary; we were modifying the dictionary while mutating, but not causing it to bite the dust; weird. Fixes #11222.

diffstat:

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

diffs (12 lines):

diff -r 8b3a175ad29d -r 69aa3bfc0963 Frameworks/Adium Framework/Source/ESContactAlertsViewController.m
--- a/Frameworks/Adium Framework/Source/ESContactAlertsViewController.m	Wed May 13 23:50:35 2009 -0400
+++ b/Frameworks/Adium Framework/Source/ESContactAlertsViewController.m	Thu May 14 00:09:23 2009 -0400
@@ -844,7 +844,7 @@
 	NSDictionary	*eventDict;
 
 	[adium.preferenceController delayPreferenceChangedNotifications:YES];
-	for (eventDict in contactEventArray) {
+	for (eventDict in [[contactEventArray copy] autorelease]) {
 		[adium.contactAlertsController removeAlert:eventDict fromListObject:listObject];
 	}
 	[adium.preferenceController delayPreferenceChangedNotifications:NO];




More information about the commits mailing list