Permalink
Browse files

bugfix

  • Loading branch information...
groue committed Mar 17, 2011
1 parent 04b599b commit 4a03545dbed544489793bdc44d3332c5dee2966e
Showing with 3 additions and 2 deletions.
  1. +3 −2 Classes/GRMustacheContext.m
@@ -380,11 +380,12 @@ - (id)valueForKeyComponent:(NSString *)key {
silentObjects = [NSMutableSet set];
[[[NSThread currentThread] threadDictionary] setObject:silentObjects forKey:GRMustacheSilentObjects];
}
- [silentObjects addObject:[NSValue valueWithPointer:object]];
+ NSValue *objectPointer = [NSValue valueWithPointer:object];
+ [silentObjects addObject:objectPointer];
#endif
value = [object valueForKey:key];
#ifdef DEBUG
- [silentObjects removeObject:object];
+ [silentObjects removeObject:objectPointer];
#endif
}
@catch (NSException *exception) {

0 comments on commit 4a03545

Please sign in to comment.