mirror of https://github.com/axmolengine/axmol.git
Merge branch 'develop' into develop_nutty_modify_framework_fixedmemleak
This commit is contained in:
commit
81836d8aeb
|
@ -146,7 +146,7 @@ Node* SceneReader::createObject(const rapidjson::Value &dict, cocos2d::Node* par
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CC_SAFE_RELEASE(com);
|
CC_SAFE_RELEASE_NULL(com);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(_fnSelector != nullptr)
|
if(_fnSelector != nullptr)
|
||||||
|
|
|
@ -343,7 +343,9 @@ void TemplateMapTest::onEnter()
|
||||||
Map<std::string, Node*> map1;
|
Map<std::string, Node*> map1;
|
||||||
CCASSERT(map1.empty(), "");
|
CCASSERT(map1.empty(), "");
|
||||||
CCASSERT(map1.size() == 0, "");
|
CCASSERT(map1.size() == 0, "");
|
||||||
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32)
|
||||||
CCASSERT(map1.bucketCount() == 0, "");
|
CCASSERT(map1.bucketCount() == 0, "");
|
||||||
|
#endif
|
||||||
CCASSERT(map1.keys().empty(), "");
|
CCASSERT(map1.keys().empty(), "");
|
||||||
CCASSERT(map1.keys(Node::create()).empty(), "");
|
CCASSERT(map1.keys(Node::create()).empty(), "");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue