Various crash fixes

This commit is contained in:
Ilya Laktyushin
2019-10-07 14:54:35 +03:00
parent 72ff18cbf7
commit 09e2e16353
3 changed files with 6 additions and 2 deletions

View File

@@ -472,7 +472,7 @@ ASSynthesizeLockingMethodsWithMutex(__instanceLock__);
[self baseWillDealloc];
// Synchronous nodes may not be able to call the hierarchy notifications, so only enforce for regular nodes.
ASDisplayNodeAssert(checkFlag(Synchronous) || !ASInterfaceStateIncludesVisible(_interfaceState), @"Node should always be marked invisible before deallocating. Node: %@", self);
//ASDisplayNodeAssert(checkFlag(Synchronous) || !ASInterfaceStateIncludesVisible(_interfaceState), @"Node should always be marked invisible before deallocating. Node: %@", self);
self.asyncLayer.asyncDelegate = nil;
_view.asyncdisplaykit_node = nil;