mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
[Minor Breaking API] Make deallocation queues more reliable (#651)
* Make our async deallocation functions take a double pointer, so we can be sure we've released before the queue drains * Make it a class property * Fix the return type * Use a locker * Improve release notes
This commit is contained in:
@@ -332,8 +332,8 @@ static NSString * const kReuseIdentifier = @"_ASCollectionReuseIdentifier";
|
||||
[self setAsyncDataSource:nil];
|
||||
|
||||
// Data controller & range controller may own a ton of nodes, let's deallocate those off-main.
|
||||
ASPerformBackgroundDeallocation(_dataController);
|
||||
ASPerformBackgroundDeallocation(_rangeController);
|
||||
ASPerformBackgroundDeallocation(&_dataController);
|
||||
ASPerformBackgroundDeallocation(&_rangeController);
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
Reference in New Issue
Block a user