Merge pull request #3634 from minggo/develop

fix memory leak
This commit is contained in:
minggo 2013-09-16 08:30:48 -07:00
commit 334c9c9e02
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ SpriteFrame* SpriteFrame::clone() const
SpriteFrame *copy = new SpriteFrame();
copy->initWithTextureFilename(_textureFilename.c_str(), _rectInPixels, _rotated, _offsetInPixels, _originalSizeInPixels);
copy->setTexture(_texture);
copy->autorelease();
return copy;
}