AFNetworking/AFNetworking — pull request #2480 by plu (2014-12-18 10:50:05+00:00)
Title: Image response serializer weirdness

Hey @mattt,

first a disclaimer: This pull request is not supposed to be merged! I just kindly want to ask you, if you could have a look at it. The image being used might be a 404 in a couple of days/weeks. If so, I can provide another one.

There are two commits. One adding a failing test. And another one fixing it. The fix is really weird and I honestly don't understand why it is fixing the issue.

Also, in our main project (eBay Kleinanzeigen), which is using AFNetworking, the malloc guard breakpoint points to https://github.com/AFNetworking/AFNetworking/blob/c3a929de8c9f6575ac5e62e0f9f14aa4ca39b93e/AFNetworking/AFURLResponseSerialization.m#L616

But I cannot reproduce that in the AFNetworking iOS Example, there the malloc guard breakpoint does not fire. But it's a different setup there anyway. It's using the category on UIImage, which is using AFHTTPRequestOperation etc.

Maybe I'm doing something completely wrong here in this NSURLSession + AFImageResponseSerializer setup? Any pointers are appreciated!

Thanks in advance,
plu