iOS: fix when load image async cause crash

This commit is contained in:
pengfei.zhou 2023-03-23 19:30:44 +08:00 committed by jingpeng
parent 5367d214b8
commit 9c19a76cf8

View File

@ -157,6 +157,9 @@ - (void)reset {
} }
- (void)subNodeContentChanged:(DoricViewNode *)subNode { - (void)subNodeContentChanged:(DoricViewNode *)subNode {
if (self.doricContext.destroyed) {
return;
}
if (self.superNode if (self.superNode
&& (self.view.doricLayout.widthSpec == DoricLayoutFit && (self.view.doricLayout.widthSpec == DoricLayoutFit
|| self.view.doricLayout.heightSpec == DoricLayoutFit)) { || self.view.doricLayout.heightSpec == DoricLayoutFit)) {