mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +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:
@@ -236,10 +236,10 @@ static std::atomic_bool static_retainsSublayoutLayoutElements = ATOMIC_VAR_INIT(
|
||||
queue.push_back({sublayout, sublayout.position});
|
||||
}
|
||||
|
||||
NSMutableArray *flattenedSublayouts = [NSMutableArray array];
|
||||
NSMutableArray *flattenedSublayouts = [[NSMutableArray alloc] init];
|
||||
|
||||
while (!queue.empty()) {
|
||||
const Context context = queue.front();
|
||||
const Context context = std::move(queue.front());
|
||||
queue.pop_front();
|
||||
|
||||
ASLayout *layout = context.layout;
|
||||
|
||||
Reference in New Issue
Block a user