ricardoquesada/CCBReader — pull request #1 by dumganhar (2013-01-23 07:05:37+00:00)
Title: Fixed Retain Interaction.

## Please check 1) and 2) i mentioned bellow.

- (CCNode*) nodeGraphFromData:(NSData*)d owner:(id)o parentSize:(CGSize) parentSize
.......
for (NSValue* pointerValue in animationManagers)
{
CCNode* node = [pointerValue pointerValue];

CCBAnimationManager* manager = [animationManagers objectForKey:pointerValue];
node.userObject = manager; // 1) node retains CCBAnimationManager here.

if (jsControlled)
{
[nodesWithAnimationManagers addObject:node];
[animationManagersForNodes addObject:manager];
}
}
.......

- (void) addNode:(CCNode)node andSequences:(NSDictionary)seq
{
[node retain]; 2) // CCBAnimationManager retains node here.

NSValue* nodePtr = [NSValue valueWithPointer:node];
[nodeSequences setObject:seq forKey:nodePtr];
}