fixed a memory leak in CCControl.

This commit is contained in:
James Chen 2012-04-17 16:37:04 +08:00
parent 0848e94efb
commit 5ce950b961
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ CCArray* CCControl::dispatchListforControlEvent(CCControlEvent controlEvent)
// If the invocation list does not exist for the dispatch table, we create it
if (invocationList == NULL)
{
invocationList=new CCArray();
invocationList = CCArray::arrayWithCapacity(1);
dispatchTable->setObject(invocationList, controlEvent);
}
return invocationList;