diff --git a/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp b/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp index b696010737..262356b723 100644 --- a/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp +++ b/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp @@ -639,7 +639,6 @@ LayerGradientTest2::LayerGradientTest2() { auto layer = LayerGradient::create(); layer->initWithColor(Color4B(255,0,0,255), Color4B(255,255,0,255)); - layer->autorelease(); addChild(layer); }