mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-03-27 22:46:35 +08:00
Merge pull request #1661 from maicki/MatchSubarrayContextsNodesCreation
[ASDataController] Match creation of subarrays for nodes and contexts in ASDataController
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user