Skip to content

Commit

Permalink
Fix crash when notifying released observer.
Browse files Browse the repository at this point in the history
Reproduced like so:

* On iPhone, select "Photos".
* Move ahead to a photo that fails to load.
* Back to "Root".
* Select "Photos" again.
* Move ahead to the same photo that fails to load.
* Watch it crash.
  • Loading branch information
henrik committed Jun 25, 2010
1 parent 5330c94 commit 59a1d71
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ - (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)vi
- (void)dealloc {

NSLog(@"dealloc EGOPhotoImageView");


[[EGOImageLoader sharedImageLoader] removeObserver:self forURL:self.photo.imageURL];
[[EGOImageLoader sharedImageLoader] cancelLoadForURL:self.photo.imageURL];

[_imageView release]; _imageView=nil;
Expand Down

0 comments on commit 59a1d71

Please sign in to comment.