Match creation of subarrays for nodes and contexts in ASDataController

This commit is contained in:
Michael Schneider
2016-05-13 22:51:40 +02:00
parent 60b71a604c
commit eee2262262

View File

@@ -209,7 +209,7 @@ static void *kASSizingQueueContext = &kASSizingQueueContext;
allocatedNodeBuffer[i] = node;
allocatedContextBuffer[i] = context;
});
subarrayOfNodes = [[NSArray alloc] initWithObjects:allocatedNodeBuffer count:batchCount];
subarrayOfNodes = [NSArray arrayWithObjects:allocatedNodeBuffer count:batchCount];
subarrayOfContexts = [NSArray arrayWithObjects:allocatedContextBuffer count:batchCount];
// Nil out buffer indexes to allow arc to free the stored cells.
for (int i = 0; i < batchCount; i++) {