From c7acb9b83d15f378f9c6864d3df124cccd845e86 Mon Sep 17 00:00:00 2001 From: Jacky Date: Wed, 13 May 2015 17:21:57 +0800 Subject: [PATCH] fix memory leakage. --- tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.cpp b/tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.cpp index ee67a9cac2..f8b426d05d 100644 --- a/tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.cpp +++ b/tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.cpp @@ -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: ";