Fixed #4566: Fix LayerTest bug

This commit is contained in:
pandamicro 2014-03-27 10:22:04 +08:00
parent 2d5c295f99
commit 413e0010f5
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ std::string LayerGradientTest::subtitle() const
//------------------------------------------------------------------ //------------------------------------------------------------------
LayerGradientTest2::LayerGradientTest2() LayerGradientTest2::LayerGradientTest2()
{ {
auto layer = new LayerGradient; auto layer = LayerGradient::create();
layer->initWithColor(Color4B(255,0,0,255), Color4B(255,255,0,255)); layer->initWithColor(Color4B(255,0,0,255), Color4B(255,255,0,255));
layer->autorelease(); layer->autorelease();
addChild(layer); addChild(layer);