iOS: fix memory leak in image node block
This commit is contained in:
parent
741cad2f3e
commit
9c166da915
@ -210,7 +210,7 @@ - (void)blendView:(UIImageView *)view forPropName:(NSString *)name propValue:(id
|
|||||||
if (self.placeHolderColor || self.errorColor) {
|
if (self.placeHolderColor || self.errorColor) {
|
||||||
self.view.contentMode = self.contentMode;
|
self.view.contentMode = self.contentMode;
|
||||||
}
|
}
|
||||||
view.doricLayout.undefined = NO;
|
self.view.doricLayout.undefined = NO;
|
||||||
if (error) {
|
if (error) {
|
||||||
[[self currentErrorImage] also:^(UIImage *it) {
|
[[self currentErrorImage] also:^(UIImage *it) {
|
||||||
self.view.image = it;
|
self.view.image = it;
|
||||||
@ -248,7 +248,7 @@ - (void)blendView:(UIImageView *)view forPropName:(NSString *)name propValue:(id
|
|||||||
if (self.placeHolderColor || self.errorColor) {
|
if (self.placeHolderColor || self.errorColor) {
|
||||||
self.view.contentMode = self.contentMode;
|
self.view.contentMode = self.contentMode;
|
||||||
}
|
}
|
||||||
view.doricLayout.undefined = NO;
|
self.view.doricLayout.undefined = NO;
|
||||||
if (error) {
|
if (error) {
|
||||||
[[self currentErrorImage] also:^(UIImage *it) {
|
[[self currentErrorImage] also:^(UIImage *it) {
|
||||||
self.view.image = it;
|
self.view.image = it;
|
||||||
|
Reference in New Issue
Block a user