Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bug where array is being mutated while enumerated.

  • Loading branch information...
commit 5a0a5de0191a96e96757274eac1a395b0fe64214 1 parent 18fb55f
Andy Lee authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/PSMTabBarControl.m
View
2  Source/PSMTabBarControl.m
@@ -221,7 +221,7 @@ - (void)dealloc {
//unbind all the items to prevent crashing
//not sure if this is necessary or not
- NSEnumerator *enumerator = [_cells objectEnumerator];
+ NSEnumerator *enumerator = [[[_cells copy] autorelease] objectEnumerator];
PSMTabBarCell *nextCell;
while((nextCell = [enumerator nextObject])) {
[self removeTabForCell:nextCell];
Please sign in to comment.
Something went wrong with that request. Please try again.