From d94941243ab51397ec370e30925276d1270c9711 Mon Sep 17 00:00:00 2001 From: Jason Xu Date: Fri, 11 Jul 2014 10:27:00 +0800 Subject: [PATCH] Fix build with -DCC_ENABLE_SCRIPT_BINDING=0 , it causes failed --- cocos/platform/CCApplicationProtocol.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos/platform/CCApplicationProtocol.h b/cocos/platform/CCApplicationProtocol.h index 501cd2f9c0..32727027e2 100644 --- a/cocos/platform/CCApplicationProtocol.h +++ b/cocos/platform/CCApplicationProtocol.h @@ -64,7 +64,9 @@ public: * @lua NA */ virtual ~ApplicationProtocol(){ +#if CC_ENABLE_SCRIPT_BINDING ScriptEngineManager::destroyInstance(); +#endif // clean auto release pool PoolManager::destroyInstance(); }