mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-05 14:02:48 +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;
|
||||
|
||||
// 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];
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user