Show
Ignore:
Timestamp:
07/06/08 16:40:47 (2 months ago)
Author:
astrange
Message:

Fix a compile-breaking typo in the last one, oops.
Also another really bad typo in the update checker.
Fix some bugs reported by Clang static analysis.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Update Checker Sources/NSString+extras.m

    r269 r913  
    8181         
    8282        [componentsCopy removeObjectsInRange: NSMakeRange (ix, len - ix)]; 
     83    [componentsCopy autorelease]; 
    8384 
    8485        return [componentsCopy componentsJoinedByString: @" "]; 
  • trunk/Update Checker Sources/UpdateCheckerAppDelegate.m

    r624 r913  
    9191                [[NSApplication sharedApplication] terminate:self]; 
    9292        } 
     93     
     94    [appcast release]; 
    9395} 
    9496 
     
    98100        if(manualRun) 
    99101                [self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred while trying to load Perian's version info. Please try again later.", nil)]; 
     102    [appcast release]; 
    100103        [[NSApplication sharedApplication] terminate:self];      
    101104} 
  • trunk/Update Checker Sources/main.m

    r834 r913  
    1616{ 
    1717        int fp = open(lockPath, O_CREAT | O_EXCL); 
    18         if(fp = -1) 
     18        if(fp == -1) 
    1919        { 
    2020                struct stat lockfile; 
     
    3434        int ret = NSApplicationMain(argc,  (const char **) argv); 
    3535         
     36    close(fp); 
    3637        unlink(lockPath); 
    3738