[Experiment] Dont forget about these collection view background deallocs (#1424)

* Dont forget about these collection view background deallocs

* Also Table view for completeness
This commit is contained in:
Michael Zuccarino
2019-03-27 11:23:27 -07:00
committed by GitHub
parent 27cc0f2717
commit dfd44e8b9e
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -334,8 +334,10 @@ static NSString * const kReuseIdentifier = @"_ASCollectionReuseIdentifier";
}
// Data controller & range controller may own a ton of nodes, let's deallocate those off-main.
ASPerformBackgroundDeallocation(&_dataController);
ASPerformBackgroundDeallocation(&_rangeController);
if (ASActivateExperimentalFeature(ASExperimentalOOMBackgroundDeallocDisable) == NO) {
ASPerformBackgroundDeallocation(&_dataController);
ASPerformBackgroundDeallocation(&_rangeController);
}
}
#pragma mark -