Re: CFDictionary
Re: CFDictionary
- Subject: Re: CFDictionary
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 2 Mar 2004 11:10:44 -0800
On Mar 2, 2004, at 9:24 AM, Devon E Bowen wrote:
CFDictionaryRef aProxy = SCPreferencesPathGetValue(session, paths);
// make a copy of the proxy data so we can modify it
dict = CFDictionaryCreateMutableCopy(NULL, 0, aProxy);
// vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
// COMMENTING THE FOLLOWING LINE MAKES THE CODE WORK FINE
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
CFRelease(aProxy);
"If you create, copy, or retain a Core Foundation object, you alone are
responsible for releasing it when you no longer need it. If you did not
directly create or copy the object, you do not own it and should not
release it."
<
http://developer.apple.com/documentation/CoreFoundation/Conceptual/
CFMemoryMgmt/Concepts/Ownership.html>
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >CFDictionary (From: Devon E Bowen <email@hidden>) |