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/MetaDataImporting/SapphireXMLFileDataImporter.m

    r737 r739  
    8686} 
    8787 
     88- (void) dealloc 
     89{ 
     90        [super dealloc]; 
     91} 
     92 
    8893- (void)setImporterDataMenu:(SapphireImporterDataMenu *)theDataMenu 
    8994{ 
     
    114119        NSError *error = nil; 
    115120        NSMutableDictionary *newMetaData=[NSMutableDictionary dictionary]; 
    116         NSXMLDocument *document = [[NSXMLDocument alloc] initWithContentsOfURL:url options:NSXMLDocumentTidyXML error:&error]; 
     121        NSXMLDocument *document = [[[NSXMLDocument alloc] initWithContentsOfURL:url options:NSXMLDocumentTidyXML error:&error] autorelease]; 
    117122        NSXMLElement *root = [document rootElement]; 
    118123        if(!root) 
     
    131136                if(fclass != FILE_CLASS_UNKNOWN) 
    132137                        [newMetaData setObject:[NSNumber numberWithInt:fclass] forKey:FILE_CLASS_KEY]; 
    133                 else 
    134                         fclass = [metaData fileClassValue]; 
    135138        } 
    136139