Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Mar 17, 2011
1 parent 04b599b commit 4a03545
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/GRMustacheContext.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -380,11 +380,12 @@ - (id)valueForKeyComponent:(NSString *)key {
silentObjects = [NSMutableSet set]; silentObjects = [NSMutableSet set];
[[[NSThread currentThread] threadDictionary] setObject:silentObjects forKey:GRMustacheSilentObjects]; [[[NSThread currentThread] threadDictionary] setObject:silentObjects forKey:GRMustacheSilentObjects];
} }
[silentObjects addObject:[NSValue valueWithPointer:object]]; NSValue *objectPointer = [NSValue valueWithPointer:object];
[silentObjects addObject:objectPointer];
#endif #endif
value = [object valueForKey:key]; value = [object valueForKey:key];
#ifdef DEBUG #ifdef DEBUG
[silentObjects removeObject:object]; [silentObjects removeObject:objectPointer];
#endif #endif
} }
@catch (NSException *exception) { @catch (NSException *exception) {
Expand Down

0 comments on commit 4a03545

Please sign in to comment.