diff --git a/plugin/samples/HelloAnalytics-JS/Classes/AppDelegate.cpp b/plugin/samples/HelloAnalytics-JS/Classes/AppDelegate.cpp index 679d315fd6..6fd24bcf85 100644 --- a/plugin/samples/HelloAnalytics-JS/Classes/AppDelegate.cpp +++ b/plugin/samples/HelloAnalytics-JS/Classes/AppDelegate.cpp @@ -23,7 +23,7 @@ AppDelegate::AppDelegate() AppDelegate::~AppDelegate() { - CCScriptEngineManager::sharedManager()->purgeSharedManager(); + CCScriptEngineManager::purgeSharedManager(); } bool AppDelegate::applicationDidFinishLaunching() diff --git a/plugin/samples/HelloIAP-JS/Classes/AppDelegate.cpp b/plugin/samples/HelloIAP-JS/Classes/AppDelegate.cpp index 03c29644b9..7ede76e6e5 100644 --- a/plugin/samples/HelloIAP-JS/Classes/AppDelegate.cpp +++ b/plugin/samples/HelloIAP-JS/Classes/AppDelegate.cpp @@ -23,7 +23,7 @@ AppDelegate::AppDelegate() AppDelegate::~AppDelegate() { - CCScriptEngineManager::sharedManager()->purgeSharedManager(); + CCScriptEngineManager::purgeSharedManager(); } bool AppDelegate::applicationDidFinishLaunching() diff --git a/template/multi-platform-js/Classes/AppDelegate.cpp b/template/multi-platform-js/Classes/AppDelegate.cpp index 6d9bc18a35..6475aba954 100644 --- a/template/multi-platform-js/Classes/AppDelegate.cpp +++ b/template/multi-platform-js/Classes/AppDelegate.cpp @@ -23,7 +23,7 @@ AppDelegate::AppDelegate() AppDelegate::~AppDelegate() { - CCScriptEngineManager::sharedManager()->purgeSharedManager(); + CCScriptEngineManager::purgeSharedManager(); } bool AppDelegate::applicationDidFinishLaunching()