Unsafe cycle in CCScheduler::unscheduleAllSelectors

CCScheduler.cpp:436

tHashSelectorEntry *pElement;
for (pElement = m_pHashForSelectors; pElement != NULL;)
{
        unscheduleAllSelectorsForTarget(pElement->target);
        pElement = (tHashSelectorEntry *)pElement->hh.next;
}

But
unscheduleAllSelectorsForTarget(pElement->target);
can call
removeHashElement(pElement); // CCScheduler.cpp:490
and then app crashed.

Yes, you are right. Thank you. I have created an issue to resolve it. #491