Merge pull request #15811 from mogemimi/fix-method-name

Fix typo in method name: 'destory' -> 'destroy'
This commit is contained in:
minggo 2016-06-12 10:35:55 +08:00 committed by GitHub
commit 84de5b0cf0
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ public class Cocos2dxLocalStorage {
return false; return false;
} }
public static void destory() { public static void destroy() {
if (mDatabase != null) { if (mDatabase != null) {
mDatabase.close(); mDatabase.close();
} }

View File

@ -72,7 +72,7 @@ void localStorageInit( const std::string& fullpath)
void localStorageFree() void localStorageFree()
{ {
if (_initialized) { if (_initialized) {
JniHelper::callStaticVoidMethod(className, "destory"); JniHelper::callStaticVoidMethod(className, "destroy");
_initialized = 0; _initialized = 0;
} }
} }