mirror of https://github.com/axmolengine/axmol.git
Merge pull request #5202 from minggo/bug-fix
fix crash of PerformanceTest
This commit is contained in:
commit
66409a2a8b
|
@ -292,6 +292,7 @@ void NodeDeallocTest::update(float dt)
|
||||||
|
|
||||||
for( int i=0; i<quantityOfNodes; ++i) {
|
for( int i=0; i<quantityOfNodes; ++i) {
|
||||||
nodes[i] = Node::create();
|
nodes[i] = Node::create();
|
||||||
|
nodes[i]->retain();
|
||||||
}
|
}
|
||||||
|
|
||||||
CC_PROFILER_START(this->profilerName());
|
CC_PROFILER_START(this->profilerName());
|
||||||
|
|
Loading…
Reference in New Issue