gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix for NSURLProtocol


From: p . o . roussel
Subject: Re: Fix for NSURLProtocol
Date: Sat, 28 Feb 2009 09:27:57 +0100
User-agent: Internet Messaging Program (IMP) 3.2.8

Selon Richard Frith-Macdonald <address@hidden>:

>
> On 27 Feb 2009, at 21:04, address@hidden 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]