Selon Richard Frith-Macdonald <rich...@tiptree.demon.co.uk>:

>
> On 27 Feb 2009, at 21:04, p.o.rous...@free.fr wrote:
>
> > Hi all,
> >
> > The attached patch allows me to use NSURLConnection with an URL
> > needing
> > authentication.
> > Without that change the connection never receives data and ends
> > right after
> > didReceiveAuthenticationChallenge: is received and treated by the
> > delegate.
> >
> > This patch may not be the right fix, I didn't looked closely.
>
> Thanks ... I did something slightly different.  I think the ASSIGN()
> you used would cause a memory leak as the request being assigned was
> produced by a mutable copy and was not autoreleased.
> Please try doing:
>
> [this->request release];
> this->request = request;

Yes, you're obviously right, I didn't think about request lifecycle. Thanks for
the explanation.

Philippe




_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to