adium 2273:7c83e1616f37: Don't mutate the keys when iterating th...
commits at adium.im
commits at adium.im
Thu May 21 19:57:12 UTC 2009
details: http://hg.adium.im/adium/rev/7c83e1616f37
revision: 2273:7c83e1616f37
author: Zachary West <zacw at adium.im>
date: Thu May 21 15:57:07 2009 -0400
Don't mutate the keys when iterating them. Fixes #12083.
diffstat:
Frameworks/Adium Framework/Source/AIAbstractAccount.m | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 9ceb06fe572e -r 7c83e1616f37 Frameworks/Adium Framework/Source/AIAbstractAccount.m
--- a/Frameworks/Adium Framework/Source/AIAbstractAccount.m Thu May 21 15:53:28 2009 -0400
+++ b/Frameworks/Adium Framework/Source/AIAbstractAccount.m Thu May 21 15:57:07 2009 -0400
@@ -1002,7 +1002,7 @@
if ([dynamicKeys count]) {
NSString *key;
- for (key in dynamicKeys) {
+ for (key in [[dynamicKeys copy] autorelease]) {
[self updateStatusForKey:key];
}
More information about the commits
mailing list