I don't see a retain cycle in the code snippet you posted, so if you are leaking memory, it may be due to another part of your app's code...
Regarding "best practices" for AFNetworking
and loading images-
AFNetworking
has a built in category on UIImageView
that has convenience methods for setting an an image view's image via a URL.
See UIImageView+AFNetworking
, specifically setImageWithURL:
method and related. This also has the advantage of keeping a cache (so you don't have to fetch images again if requested multiple times), which AFAIK, doesn't appear to done by AFImageRequestOperation
.