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/SapphireMetaDataUpgrading.m

    r734 r739  
    3030        self = [super init]; 
    3131         
    32         moc = [SapphireApplianceController createManagedObjectContextForFile:nil]; 
     32        moc = [SapphireApplianceController newManagedObjectContextForFile:nil]; 
    3333         
    3434        return self; 
     
    4343        [self setListTitle:BRLocalizedString(@"Upgrading Metadata", @"")]; 
    4444         
    45         moc = [SapphireApplianceController createManagedObjectContextForFile:nil]; 
     45        moc = [SapphireApplianceController newManagedObjectContextForFile:nil]; 
    4646         
    4747        if(moc == nil) 
     
    121121} 
    122122 
    123 - (NSManagedObjectContext *)createV1Moc:(NSString *)storeFile 
     123- (NSManagedObjectContext *)newV1Moc:(NSString *)storeFile 
    124124{ 
    125125        NSURL *storeUrl = [NSURL fileURLWithPath:storeFile]; 
     
    159159        if([fm fileExistsAtPath:v1StoreFile]) 
    160160        { 
    161                 NSManagedObjectContext *oldContext = [self createV1Moc:v1StoreFile]; 
     161                NSManagedObjectContext *oldContext = [self newV1Moc:v1StoreFile]; 
    162162                if(oldContext != nil) 
    163163                        [SapphireMetaDataSupport importV1Store:oldContext intoContext:moc withDisplay:self]; 
     164                [oldContext release]; 
    164165        } 
    165166        else