| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Here's a shortened down version of code I did not write myself:
static bool myfunction()
{
CFBundleRef bundle;
CFURLRef resources;
bundle = CFBundleGetMainBundle();
if(!bundle)
{
return(FALSE);
}
resources = CFBundleCopyResourcesDirectoryURL(bundle);
--> CFRelease(bundle);
if(!resources)
{
return(FALSE);
}
...
...
}
You mention that I should not release something that was returned to me by a
"get" function. Is the above CFRelease(bundle) wrong then ?
| References: | |
| >Re(2): Strange crash, CFBundle* (From: Jens Bauer <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.