From 413e0010f5d7c04c0d10f7af108051d9e65aa6f6 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Thu, 27 Mar 2014 10:22:04 +0800 Subject: [PATCH] Fixed #4566: Fix LayerTest bug --- tests/cpp-tests/Classes/LayerTest/LayerTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp b/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp index 8087e7e9e1..b696010737 100644 --- a/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp +++ b/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp @@ -637,7 +637,7 @@ std::string LayerGradientTest::subtitle() const //------------------------------------------------------------------ LayerGradientTest2::LayerGradientTest2() { - auto layer = new LayerGradient; + auto layer = LayerGradient::create(); layer->initWithColor(Color4B(255,0,0,255), Color4B(255,255,0,255)); layer->autorelease(); addChild(layer);