Merge pull request #11816 from fusijie/fix_spritepolygon

fix memory leakage.
This commit is contained in:
minggo 2015-05-14 10:19:48 +08:00
commit 3b60f67041
1 changed files with 1 additions and 0 deletions

View File

@ -234,6 +234,7 @@ void SpritePolygonTestDemo::initDefaultSprite(const std::string &filename, cocos
debugForNormalSprite->drawLine(positions[3], positions[0], Color4F::GREEN);
debugForNormalSprite->drawLine(positions[0], positions[2], Color4F::GREEN);
debugForNormalSprite->setVisible(false);
delete [] positions;
TTFConfig ttfConfig("fonts/arial.ttf", 8);
std::string temp = "Sprite:\nPixels drawn: ";