iOS: fix memory leak in image node block

This commit is contained in:
王劲鹏 2021-03-04 15:41:10 +08:00 committed by osborn
parent 741cad2f3e
commit 9c166da915

View File

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