Merge pull request #2218 from RoosterDragon/ImageView-leak

Fixed: CPImageView no longer leaks due to image load notification.
This commit is contained in:
Antoine Mercadal committed 2014-09-24 12:30:43 -07:00
commit c4a839f47a
1 file changed
+1
+1
View File
@@ -178,6 +178,7 @@ var CPImageViewEmptyPlaceholderImage = nil;
- (void)imageDidLoad:(CPNotification)aNotification
{
[[CPNotificationCenter defaultCenter] removeObserver:self name:CPImageDidLoadNotification object:[self objectValue]];
[self hideOrDisplayContents];
[self setNeedsLayout];