@@ -123,11 +123,11 @@ return self; } - (instancetype)initWithObjects: (id const *)objects count: (size_t)count { - self = [self init]; + self = [super init]; @try { bool ok = true; for (size_t i = 0; i < count; i++) { @@ -138,10 +138,12 @@ } if (!ok) @throw [OFInvalidArgumentException exception]; + _array = [[OFMutableData alloc] initWithItemSize: sizeof(id) + capacity: count]; [_array addItems: objects count: count]; } @catch (id e) { for (size_t i = 0; i < count; i++) [objects[i] release];