fixed #1273: Passed 'this' to unscheduleSelector rather than 'g_sharedTextureCache'.

This commit is contained in:
James Chen 2012-05-30 14:27:30 +08:00
parent 895de701ba
commit 265cb135ad
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ void CCTextureCache::addImageAsyncCallBack(ccTime dt)
--s_nAsyncRefCount;
if (0 == s_nAsyncRefCount)
{
CCDirector::sharedDirector()->getScheduler()->unscheduleSelector(schedule_selector(CCTextureCache::addImageAsyncCallBack), g_sharedTextureCache);
CCDirector::sharedDirector()->getScheduler()->unscheduleSelector(schedule_selector(CCTextureCache::addImageAsyncCallBack), this);
}
}
}