Add assertion in dealloc that it is on main in ASTextKitComponents (#603)

This commit is contained in:
Michael Schneider
2017-10-05 09:06:50 -07:00
committed by GitHub
parent dd90978fb6
commit 4379b31ac2

View File

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