Skip to content

Commit

Permalink
Fixed a memory leak with sprite batch nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
slembcke committed Mar 8, 2014
1 parent 1caaec0 commit 3f6eb81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos2d/CCSprite.h
Expand Up @@ -68,9 +68,9 @@
//
// Data used when the sprite is rendered using a CCSpriteBatchNode.
//
CCTextureAtlas *__unsafe_unretained _textureAtlas; // Sprite Sheet texture atlas (weak reference)
__unsafe_unretained CCTextureAtlas * _textureAtlas; // Sprite Sheet texture atlas (weak reference)
NSUInteger _atlasIndex; // Absolute (real) Index on the batch node
CCSpriteBatchNode *_batchNode; // Used batch node (weak reference)
__unsafe_unretained CCSpriteBatchNode *_batchNode; // Used batch node (weak reference)
CGAffineTransform _transformToBatch; //
BOOL _dirty; // Sprite needs to be updated
BOOL _recursiveDirty; // Subchildren needs to be updated
Expand Down

0 comments on commit 3f6eb81

Please sign in to comment.