mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Add assertion in dealloc that it is on main in ASTextKitComponents (#603)
This commit is contained in:
committed by
GitHub
parent
dd90978fb6
commit
4379b31ac2
@@ -16,6 +16,7 @@
|
||||
//
|
||||
|
||||
#import <AsyncDisplayKit/ASTextKitComponents.h>
|
||||
#import <AsyncDisplayKit/ASAssert.h>
|
||||
|
||||
#import <tgmath.h>
|
||||
|
||||
@@ -64,6 +65,8 @@
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
|
||||
// Nil out all delegate to prevent crash
|
||||
_textView.delegate = nil;
|
||||
_layoutManager.delegate = nil;
|
||||
|
||||
Reference in New Issue
Block a user