MugunthKumar/MKNetworkKit — pull request #124 by jgimenez (2012-05-14 09:36:41+00:00)
Title: retaining client queue

When enqueueOperation: is called from an ephemeral queue, the calling queue be kept alive (retained) so that the response can be processed in that queue.

At present, if the queue used to call enqueueOperation: is freed by the system, the pointer originalQueue points to an invalid queue. ARC does not handle these situations. The problem can not be reproduced all the times, because it is a run condition (it sometimes works because the pointer is still valid).

Attaching a pull request to fix it.