rs/SDWebImage — Issue #68: Crash in SDWebImageManager imageDownloader:didFinishWithImage:
Author: chrismcb
Created: 2012-02-10 20:12:52+00:00
State: open

We recently released our app to the appstore, and almost immediately got a few crashes in SDWebImageManager imageDownloader:didFinishWithImage:
The top of the stacks look like:

0 libobjc.A.dylib 0x33c28c98 objc_msgSend + 16
1 CoreFoundation 0x308f0571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 25
2 Oyster.com 0x0001d98f -[SDWebImageManager imageDownloader:didFinishWithImage:] (SDWebImageManager.m:236)
3 CoreFoundation 0x308f0571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 25
4 Oyster.com 0x0001cb03 -[SDWebImageDownloader connectionDidFinishLoading:] (SDWebImageDownloader.m:141)

We have the recent code that does a retain on the delegate inside this function.
As long as our delegate is created properly, I don't see how we get into this situation