Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
CFNumberRef dummy question ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFNumberRef dummy question ...



I'm writing some IOKit code and I use CNumberRef

I see a code sample like that:
UInt32 n = SomeValue;
CFNumberRef refn = CFNumberCreate (kCFAllocatorDefault,
kCFNumberIntType, &n);

but I never see any call to CFRelease () which sounds like a bug to me.
Also, I add the values into a dict.
I think I could release it immmediately after that, no ?
_______________________________________________
darwin-userlevel mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-userlevel
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.