Changeset 6356


Ignore:
Timestamp:
Jul 18, 2008, 4:57:38 AM (13 years ago)
Author:
livings124
Message:

eliminate 2 tiny memory leaks from the last commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r6355 r6356  
    549549            CFStringRef appRef = CFURLCopyPath( appURL );
    550550            const char * appString = CFStringGetCStringPtr( appRef, CFStringGetFastestEncoding( appRef ) );
     551            CFRelease(appURL);
     552            CFRelease(appRef);
    551553           
    552554            /*CFURLRef resourcesDirURL = CFBundleCopyResourcesDirectoryURL( CFBundleGetMainBundle() );
    553555            CFStringRef resourcesDirRef = CFURLCopyPath( resourcesDirURL );
    554             const char * resourcesDirString = CFStringGetCStringPtr( resourcesDirRef, CFStringGetFastestEncoding( resourcesDirRef ) );*/
     556            const char * resourcesDirString = CFStringGetCStringPtr( resourcesDirRef, CFStringGetFastestEncoding( resourcesDirRef ) );
     557            CFRelease(resourcesDirURL);
     558            CFRelease(resourcesDirRef);*/
    555559           
    556560            sprintf( path, "%s%s", appString, "Contents/Resources/web" );
Note: See TracChangeset for help on using the changeset viewer.