From eee226226239ef306d1f143d5c68cd74170b6d27 Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Fri, 13 May 2016 22:51:40 +0200 Subject: [PATCH] Match creation of subarrays for nodes and contexts in ASDataController --- AsyncDisplayKit/Details/ASDataController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsyncDisplayKit/Details/ASDataController.mm b/AsyncDisplayKit/Details/ASDataController.mm index 2847abf6d6..611dd1c5d3 100644 --- a/AsyncDisplayKit/Details/ASDataController.mm +++ b/AsyncDisplayKit/Details/ASDataController.mm @@ -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++) {