mirror of https://github.com/axmolengine/axmol.git
fixed a memory leak in CCControl.
This commit is contained in:
parent
0848e94efb
commit
5ce950b961
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue