mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-06 14:25:04 +00:00
Merge pull request #249 from facebook/weak-delegation
Fix strong ASNetworkImageNodeDelegate reference.
This commit is contained in:
commit
93bb7cd591
@ -20,7 +20,7 @@
|
|||||||
id<ASImageDownloaderProtocol> _downloader;
|
id<ASImageDownloaderProtocol> _downloader;
|
||||||
|
|
||||||
// Only access any of these with _lock.
|
// Only access any of these with _lock.
|
||||||
id<ASNetworkImageNodeDelegate> _delegate;
|
__weak id<ASNetworkImageNodeDelegate> _delegate;
|
||||||
|
|
||||||
NSURL *_URL;
|
NSURL *_URL;
|
||||||
UIImage *_defaultImage;
|
UIImage *_defaultImage;
|
||||||
@ -213,7 +213,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (responseImage != NULL) {
|
if (responseImage != NULL) {
|
||||||
[strongSelf->_delegate imageNode:self didLoadImage:strongSelf.image];
|
[strongSelf->_delegate imageNode:strongSelf didLoadImage:strongSelf.image];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user