Changeset 1287 for trunk

Show
Ignore:
Timestamp:
06/22/10 18:35:28 (2 years ago)
Author:
gbooker
Message:

Corrections from the static analyzer.

Location:
trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireCompatibilityClasses/SapphireFrontRowCompat.m

    r1203 r1287  
    254254                CGImageRef coverArt = nil; 
    255255                CGImageSourceRef source = CGImageSourceCreateWithData((CFDataRef)imageData, nil); 
    256                 if(source != NULL) 
     256                if(source != NULL) { 
    257257                        coverArt = CGImageSourceCreateImageAtIndex(source, 1, nil); 
    258                 CFRelease(source); 
     258                        CFRelease(source); 
     259                } 
    259260                return [(id)coverArt autorelease]; 
    260261        } 
  • trunk/SapphireFrappliance/FRAppliance/SapphireWaitDisplay.m

    r1270 r1287  
    6767        NSRect newFrame; 
    6868        newFrame.size.width = newFrame.size.height = frame.size.height / 6.0f; 
    69         newFrame.origin.y += (frame.size.height - newFrame.size.height) / 2.0f; 
     69        newFrame.origin.y = (frame.size.height - newFrame.size.height) / 2.0f; 
    7070        newFrame.origin.x = (frame.size.width - newFrame.size.width) / 2.0f; 
    7171        [spinner setFrame:newFrame] ; 
  • trunk/SapphireFrappliance/MetaData/SapphireMObjects/SapphireFileMetaData.m

    r1273 r1287  
    394394                return YES; 
    395395 
    396         int modTime = [[xmlProps objectForKey:NSFileModificationDate] timeIntervalSince1970]; 
     396        int modTime = 0; 
     397        if(xmlProps) 
     398                modTime = [[xmlProps objectForKey:NSFileModificationDate] timeIntervalSince1970]; 
    397399        if(modTime != [self importedTimeFromSource:IMPORT_TYPE_XML_MASK]) 
    398400                //XML modification time does not match our last import 
  • trunk/SapphireFrappliance/MetaData/Support/SapphireMetaDataScanner.m

    r1251 r1287  
    111111        for(i=0; i<=endIndex; i++) 
    112112        { 
    113                 NSArray *components; 
    114                 NSString *subDirName; 
     113                NSArray *components = nil; 
     114                NSString *subDirName = nil; 
    115115                if(i == endIndex) 
    116116                {