Merge branch 'develop' into develop_nutty_modify_framework_fixedmemleak

This commit is contained in:
CaiWenzhi 2014-01-06 15:57:19 +08:00
commit 81836d8aeb
2 changed files with 3 additions and 1 deletions

View File

@ -146,7 +146,7 @@ Node* SceneReader::createObject(const rapidjson::Value &dict, cocos2d::Node* par
}
else
{
CC_SAFE_RELEASE(com);
CC_SAFE_RELEASE_NULL(com);
}
}
if(_fnSelector != nullptr)

View File

@ -343,7 +343,9 @@ void TemplateMapTest::onEnter()
Map<std::string, Node*> map1;
CCASSERT(map1.empty(), "");
CCASSERT(map1.size() == 0, "");
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32)
CCASSERT(map1.bucketCount() == 0, "");
#endif
CCASSERT(map1.keys().empty(), "");
CCASSERT(map1.keys(Node::create()).empty(), "");