Show
Ignore:
Timestamp:
01/09/09 15:46:53 (3 years ago)
Author:
gbooker
Message:

Ran a static analysis. Corrected many leaks, unused assignments, and missing assignments.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/CoreData/SapphireFrappliance/FRAppliance/main_helper.m

    r733 r739  
    2323 
    2424@interface NSObject (SapphireApplianceControllerAPI) 
    25 - (NSManagedObjectContext *)createManagedObjectContextForFile:(NSString *)storeFile; 
     25- (NSManagedObjectContext *)newManagedObjectContextForFile:(NSString *)storeFile; 
    2626@end 
    2727 
     
    5454        [bundle load]; 
    5555         
    56         NSManagedObjectContext *moc = [NSClassFromString(@"SapphireApplianceController") createManagedObjectContextForFile:nil]; 
     56        NSManagedObjectContext *moc = [NSClassFromString(@"SapphireApplianceController") newManagedObjectContextForFile:nil]; 
    5757        if(moc == nil) 
     58        { 
     59                [innerPool drain]; 
    5860                return 0; 
     61        } 
    5962 
    6063        SapphireImportHelperClient *help = [[NSClassFromString(@"SapphireImportHelperClient") alloc] initWithContext:moc];