diff --git a/Source/ASCollectionView.mm b/Source/ASCollectionView.mm index 4ea247095..d8dc9fdfe 100644 --- a/Source/ASCollectionView.mm +++ b/Source/ASCollectionView.mm @@ -334,8 +334,10 @@ - (void)dealloc } // 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 - diff --git a/Source/ASTableView.mm b/Source/ASTableView.mm index 34b78eb64..9cae6878b 100644 --- a/Source/ASTableView.mm +++ b/Source/ASTableView.mm @@ -373,8 +373,10 @@ - (void)dealloc } // 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 -