Ignore:
Timestamp:
05/16/06 18:44:19 (14 years ago)
Author:
rchin
Message:

Fixed problem with F-Script leaking file handles (caused F-Script to not be able to inject into applications after a certain number of running apps had been launched). The problem was in appIsPEF calling open(2) but not close(2) before returning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/F-Script Anywhere/Source/DeVercruesseProcess.m

    r154 r222  
    111111    bundleURL = CFURLCreateWithFileSystemPath(NULL, bundleLoc, kCFURLPOSIXPathStyle, NO);
    112112    bundleRef = CFBundleCreate(NULL, bundleURL);
     113    CFRelease(bundleURL);
    113114
    114115    if (bundleRef == NULL) {
    115116        BOOL isDir;
    116         CFRelease(bundleURL);
    117117        if ([[NSFileManager defaultManager] fileExistsAtPath: [self loc] isDirectory: &isDir] && !isDir)
    118118            return [self loc];
Note: See TracChangeset for help on using the changeset viewer.