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:
parent
f49b471454
commit
dc1a870e7f
1 changed files with 5 additions and 1 deletions
|
@ -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" );
|
||||
|
||||
|
|
Loading…
Reference in a new issue