mirror of https://github.com/axmolengine/axmol.git
Fixed #4566: Remove autorelease for create construct in LayerTest
This commit is contained in:
parent
413e0010f5
commit
87f9eb3217
|
@ -639,7 +639,6 @@ LayerGradientTest2::LayerGradientTest2()
|
||||||
{
|
{
|
||||||
auto layer = LayerGradient::create();
|
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();
|
|
||||||
addChild(layer);
|
addChild(layer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue