Thu 09 May 2013 10:15:23 PM UTC, original submission:
I am running on an Intel NUC running debian wheezy, with hand built gnustep 1.24. My GCC is version 4.7.2.
This is sort of a corollary to this bug: https://savannah.gnu.org/bugs/?func=detailitem&item_id=35686
I have written a wrapper around NSURLConnection called RPMHTTPConnection. In the attached test program, I alloc/init an RPMHTTPConnection, send a request, receive a callback, and then release the RPMHTTPConnection instance. However, -dealloc is never called in my RPMHTTPConnection class and I suspect that the underlying NSURLConnection is not releasing its delegate after the request finishes. If I am more eager about releasing the NSURLConnection, like releasing it in the method where RPMHTTPConnection calls its own delegate, the dealloc is called as I would expect.
Today, May 9th 2013, I checked out the latest gnustep and I do not see _delegate being released after the connection finished or fails.
When I run the attached program I get this output:
NSURLConnectionBug[16514] got response from instance: 0x9b19e74, data length: 44074
When I run the equivalent program on my Mac I get this output:
NSURLConnectionBug[9650] got response from instance: 0x9d8e22c, data length: 44074
NSURLConnectionBug[9650] deallocing instance: 0x9d8e22c
|