Merge pull request #7392 from xhcnb/fix_CC_ENABLE_SCRIPT_BINDING_build

Fix build with -DCC_ENABLE_SCRIPT_BINDING=0 , it causes failed
This commit is contained in:
minggo 2014-07-11 13:41:33 +08:00
commit f205c0b704
1 changed files with 2 additions and 0 deletions

View File

@ -64,7 +64,9 @@ public:
* @lua NA
*/
virtual ~ApplicationProtocol(){
#if CC_ENABLE_SCRIPT_BINDING
ScriptEngineManager::destroyInstance();
#endif
// clean auto release pool
PoolManager::destroyInstance();
}