mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-28 09:38:52 +00:00
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