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:
Adlai Holler
2018-06-15 10:15:25 -07:00
committed by GitHub
parent a4dd19d808
commit a11506564a
26 changed files with 67 additions and 79 deletions

View File

@@ -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];
}