IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 20, 2007, 2:21:57 PM (19 years ago)
Author:
eugene
Message:

plug leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPARead.c

    r13893 r14950  
    6464
    6565    // place the image subset in the appropriate target location, freeing if needed
    66     // XXX why psMemIncrRefCounter on psImageSubset??
    6766    switch (type) {
    6867      case FPA_READ_TYPE_IMAGE:
     
    7069            psFree (readout->image);
    7170        }
    72         readout->image = psMemIncrRefCounter(psImageSubset(image, region));
     71        readout->image = psImageSubset(image, region);
    7372        break;
    7473      case FPA_READ_TYPE_MASK:
     
    7675            psFree (readout->mask);
    7776        }
    78         readout->mask = psMemIncrRefCounter(psImageSubset(image, region));
     77        readout->mask = psImageSubset(image, region);
    7978        break;
    8079      case FPA_READ_TYPE_WEIGHT:
     
    8281            psFree (readout->weight);
    8382        }
    84         readout->weight = psMemIncrRefCounter(psImageSubset(image, region));
     83        readout->weight = psImageSubset(image, region);
    8584        break;
    8685      default:
     
    111110                                      PS_MIN(biassec->y1 - readout->row0, image->numRows) // y1
    112111                                     );
    113         psImage *overscan = psMemIncrRefCounter(psImageSubset(image, region));
     112        psImage *overscan = psImageSubset(image, region);
    114113        psListAdd(readout->bias, PS_LIST_TAIL, overscan);
    115114        psFree(overscan);
Note: See TracChangeset for help on using the changeset viewer.