Show
Ignore:
Timestamp:
06/29/09 14:37:31 (13 months ago)
Author:
tsnorri
Message:

Changed calls to CFRetain and CFRelease as per Apple's recommendation
- Fixes #209.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Sources/BXLogger.m

    r1230 r1315  
    121121        const char* file = LastPathComponent (fileName); 
    122122         
    123         NSString* date = (id) CFRetain ([[NSDate date] descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S.%F" timeZone: nil locale: nil]); 
    124         NSString* message = (id) CFRetain ([[[NSString alloc] initWithFormat: messageFmt arguments: args] autorelease]); 
     123        NSString* date = [[NSDate date] descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S.%F" timeZone: nil locale: nil]; 
     124        NSString* message = [[[NSString alloc] initWithFormat: messageFmt arguments: args] autorelease]; 
    125125                 
    126126        const char isMain = ([NSThread isMainThread] ? 'm' : 's'); 
     
    129129         
    130130        //For GC. 
    131         CFRelease (date); 
    132         CFRelease (message); 
     131        [date self]; 
     132        [message self]; 
    133133         
    134134        if (executable)