Merge pull request #1661 from maicki/MatchSubarrayContextsNodesCreation

[ASDataController] Match creation of subarrays for nodes and contexts in ASDataController
This commit is contained in:
appleguy
2016-05-13 23:47:41 -07:00

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++) {