From 9c166da91556d232c098bff479c99336fadd0a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Thu, 4 Mar 2021 15:41:10 +0800 Subject: [PATCH] iOS: fix memory leak in image node block --- doric-iOS/Pod/Classes/Shader/DoricImageNode.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doric-iOS/Pod/Classes/Shader/DoricImageNode.m b/doric-iOS/Pod/Classes/Shader/DoricImageNode.m index d7d7e837..93b7b0e0 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricImageNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricImageNode.m @@ -210,7 +210,7 @@ - (void)blendView:(UIImageView *)view forPropName:(NSString *)name propValue:(id if (self.placeHolderColor || self.errorColor) { self.view.contentMode = self.contentMode; } - view.doricLayout.undefined = NO; + self.view.doricLayout.undefined = NO; if (error) { [[self currentErrorImage] also:^(UIImage *it) { self.view.image = it; @@ -248,7 +248,7 @@ - (void)blendView:(UIImageView *)view forPropName:(NSString *)name propValue:(id if (self.placeHolderColor || self.errorColor) { self.view.contentMode = self.contentMode; } - view.doricLayout.undefined = NO; + self.view.doricLayout.undefined = NO; if (error) { [[self currentErrorImage] also:^(UIImage *it) { self.view.image = it;