FROM : Michael Ash
DATE : Tue Jul 01 23:49:33 2008
On Tue, Jul 1, 2008 at 1:09 PM, Kyle Sluder
<kyle.sluder+<email_removed>> wrote:
> There won't be any documentation regarding allocating and deallocating
> most objects, because, like Cocoa, Core Foundation religiously follows
> a memory management scheme known as the Create Rule.
...
> How did you create your auth ref?
> CFHTTPAuthenticationCreateFromResponse? It seems that you have
> forgotten to CFRetain it (when you store it somewhere is the most
> likely place) and freeing the request is releasing the auth ref which
> is also being freed.
Since that function contains "Create", you already own it. CFRetaining
it will just require you to CFRelease it twice, which is pointless.
Mike
DATE : Tue Jul 01 23:49:33 2008
On Tue, Jul 1, 2008 at 1:09 PM, Kyle Sluder
<kyle.sluder+<email_removed>> wrote:
> There won't be any documentation regarding allocating and deallocating
> most objects, because, like Cocoa, Core Foundation religiously follows
> a memory management scheme known as the Create Rule.
...
> How did you create your auth ref?
> CFHTTPAuthenticationCreateFromResponse? It seems that you have
> forgotten to CFRetain it (when you store it somewhere is the most
> likely place) and freeing the request is releasing the auth ref which
> is also being freed.
Since that function contains "Create", you already own it. CFRetaining
it will just require you to CFRelease it twice, which is pointless.
Mike
| Related mails | Author | Date |
|---|---|---|
| Jonathan Hohle | Jul 1, 15:09 | |
| Kyle Sluder | Jul 1, 19:09 | |
| mmalc crawford | Jul 1, 19:15 | |
| Jonathan Hohle | Jul 1, 22:21 | |
| Michael Ash | Jul 1, 23:49 | |
| Kyle Sluder | Jul 1, 23:59 |






Cocoa mail archive

