mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +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:
@@ -160,7 +160,7 @@
|
||||
self.style.descender = stackChildren.back().style.descender;
|
||||
}
|
||||
|
||||
NSMutableArray *sublayouts = [NSMutableArray array];
|
||||
auto sublayouts = [[NSMutableArray<ASLayout *> alloc] init];
|
||||
for (const auto &item : positionedLayout.items) {
|
||||
[sublayouts addObject:item.layout];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user