Browse Source

Fixed leaking CCTextureAtlas.

NathanSweet 12 years ago
parent
commit
adb406a8ac
1 changed files with 0 additions and 1 deletions
  1. 0 1
      spine-cocos2d-iphone/src/spine/spine-cocos2d-iphone.m

+ 0 - 1
spine-cocos2d-iphone/src/spine/spine-cocos2d-iphone.m

@@ -29,7 +29,6 @@
 void _AtlasPage_createTexture (AtlasPage* self, const char* path) {
 	CCTexture2D* texture = [[CCTextureCache sharedTextureCache] addImage:@(path)];
 	CCTextureAtlas* textureAtlas = [[CCTextureAtlas alloc] initWithTexture:texture capacity:4];
-	[textureAtlas retain];
 	self->rendererObject = textureAtlas;
 	CGSize size = texture.contentSizeInPixels;
 	self->width = size.width;