Call -cancel at the end of a synchronous load so that we stop our NSURLProtocol instance from retaining us as its client.

This commit is contained in:
Richard Frith-Macdonald 2021-01-26 14:38:29 +00:00
parent 747f47d83d
commit 625e8541a9

View file

@ -403,6 +403,9 @@ typedef struct
*error = [[[collector error] retain] autorelease];
}
}
/* Cancel to prevent the NSURLProtocol instance retaining us.
*/
[conn cancel];
[conn release];
}
[collector release];