mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Reduce usage of autorelease pools (#968)
* Reduce reliance on the autorelease pool * changelog * A few more places * Use it in another place
This commit is contained in:
@@ -758,7 +758,7 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
||||
NSArray<ASCellNode *> *nodes = [_cellsForLayoutUpdates allObjects];
|
||||
[_cellsForLayoutUpdates removeAllObjects];
|
||||
|
||||
NSMutableArray<ASCellNode *> *nodesSizeChanged = [NSMutableArray array];
|
||||
auto nodesSizeChanged = [[NSMutableArray<ASCellNode *> alloc] init];
|
||||
[_dataController relayoutNodes:nodes nodesSizeChanged:nodesSizeChanged];
|
||||
if (nodesSizeChanged.count > 0) {
|
||||
[self requeryNodeHeights];
|
||||
|
||||
Reference in New Issue
Block a user