1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

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

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" );