From 9c19a76cf86e58507438292a3ca0fd1daa25743c Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Thu, 23 Mar 2023 19:30:44 +0800 Subject: [PATCH] iOS: fix when load image async cause crash --- doric-iOS/Pod/Classes/Shader/DoricSuperNode.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doric-iOS/Pod/Classes/Shader/DoricSuperNode.m b/doric-iOS/Pod/Classes/Shader/DoricSuperNode.m index 1118d4c2..8176d50a 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricSuperNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricSuperNode.m @@ -157,6 +157,9 @@ - (void)reset { } - (void)subNodeContentChanged:(DoricViewNode *)subNode { + if (self.doricContext.destroyed) { + return; + } if (self.superNode && (self.view.doricLayout.widthSpec == DoricLayoutFit || self.view.doricLayout.heightSpec == DoricLayoutFit)) {