Skip to content

Commit 51f2d1c

Browse files
committed
Fixed a memory leak with sprite batch nodes.
Former-commit-id: 3f6eb81
1 parent 7bf49da commit 51f2d1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cocos2d/CCSprite.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
//
6969
// Data used when the sprite is rendered using a CCSpriteBatchNode.
7070
//
71-
CCTextureAtlas *__unsafe_unretained _textureAtlas; // Sprite Sheet texture atlas (weak reference)
71+
__unsafe_unretained CCTextureAtlas * _textureAtlas; // Sprite Sheet texture atlas (weak reference)
7272
NSUInteger _atlasIndex; // Absolute (real) Index on the batch node
73-
CCSpriteBatchNode *_batchNode; // Used batch node (weak reference)
73+
__unsafe_unretained CCSpriteBatchNode *_batchNode; // Used batch node (weak reference)
7474
CGAffineTransform _transformToBatch; //
7575
BOOL _dirty; // Sprite needs to be updated
7676
BOOL _recursiveDirty; // Subchildren needs to be updated

0 commit comments

Comments
 (0)