--- np2/macosx/np2opening.cpp 2003/11/13 18:17:42 1.4 +++ np2/macosx/np2opening.cpp 2004/03/02 23:23:06 1.6 @@ -12,7 +12,6 @@ #include "np2opening.h" - static PicHandle getbmp(FSSpec fsc, Rect* srt) { PicHandle pict = NULL; GraphicsImportComponent gi; @@ -42,8 +41,11 @@ bool getResourceFile(const char* name, F CFURLRef url = NULL; FSRef fsr; bool ret = false; + CFStringRef str = CFSTRj(name); - url=CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTRj(name), NULL, NULL); + if (!str) return (false); + url=CFBundleCopyResourceURL(CFBundleGetMainBundle(), str, NULL, NULL); + CFRelease(str); if (url) { if (CFURLGetFSRef(url, &fsr)) { if (FSGetCatalogInfo(&fsr, kFSCatInfoNone, NULL, NULL, fsc, NULL) == noErr) {