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