Skip to content

Commit

Permalink
Fix typo of function name in AsyncTaskPool
Browse files Browse the repository at this point in the history
  • Loading branch information
mogemimi committed Feb 25, 2016
1 parent c7ced7d commit 5de611b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cocos/base/CCAsyncTaskPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ AsyncTaskPool* AsyncTaskPool::getInstance()
return s_asyncTaskPool;
}

void AsyncTaskPool::destoryInstance()
void AsyncTaskPool::destroyInstance()
{
delete s_asyncTaskPool;
s_asyncTaskPool = nullptr;
Expand Down
5 changes: 4 additions & 1 deletion cocos/base/CCAsyncTaskPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ class CC_DLL AsyncTaskPool
/**
* Destroys the async task pool.
*/
static void destoryInstance();
static void destroyInstance();

/** @deprecated Use method destroyInstance() instead. */
CC_DEPRECATED_ATTRIBUTE static void destoryInstance() { return destroyInstance(); }

/**
* Stop tasks.
Expand Down
2 changes: 1 addition & 1 deletion cocos/base/CCDirector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ void Director::reset()
GLProgramCache::destroyInstance();
GLProgramStateCache::destroyInstance();
FileUtils::destroyInstance();
AsyncTaskPool::destoryInstance();
AsyncTaskPool::destroyInstance();

// cocos2d-x specific data structures
UserDefault::destroyInstance();
Expand Down

0 comments on commit 5de611b

Please sign in to comment.