closed #4104: Crash if invoking Array::initWithObjects()

This commit is contained in:
James Chen 2014-02-20 21:44:40 +08:00
parent 0b6858bdde
commit 23082c0d6c
1 changed files with 2 additions and 1 deletions

View File

@ -517,7 +517,8 @@ bool __Array::initWithObjects(Ref* object, ...)
do
{
CC_BREAK_IF(object == nullptr);
CC_BREAK_IF(!initWithCapacity(1));
va_list args;
va_start(args, object);