eliminate 2 tiny memory leaks from the last commit

This commit is contained in:
Mitchell Livingston 2008-07-18 04:57:38 +00:00
parent f49b471454
commit dc1a870e7f
1 changed files with 5 additions and 1 deletions

View File

@ -548,10 +548,14 @@ tr_getClutchDir( const tr_session * session UNUSED )
CFURLRef appURL = CFBundleCopyBundleURL( CFBundleGetMainBundle() );
CFStringRef appRef = CFURLCopyPath( appURL );
const char * appString = CFStringGetCStringPtr( appRef, CFStringGetFastestEncoding( appRef ) );
CFRelease(appURL);
CFRelease(appRef);
/*CFURLRef resourcesDirURL = CFBundleCopyResourcesDirectoryURL( CFBundleGetMainBundle() );
CFStringRef resourcesDirRef = CFURLCopyPath( resourcesDirURL );
const char * resourcesDirString = CFStringGetCStringPtr( resourcesDirRef, CFStringGetFastestEncoding( resourcesDirRef ) );*/
const char * resourcesDirString = CFStringGetCStringPtr( resourcesDirRef, CFStringGetFastestEncoding( resourcesDirRef ) );
CFRelease(resourcesDirURL);
CFRelease(resourcesDirRef);*/
sprintf( path, "%s%s", appString, "Contents/Resources/web" );