IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14949


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

plug leaks from psImageSubset

File:
1 edited

Legend:

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

    r13898 r14949  
    10241024        // force limits to land on chip
    10251025        psRegion bounds = psRegionForImage (hdu->images->data[0], *chipRegion);
    1026         mosaicImage = psMemIncrRefCounter(psImageSubset(hdu->images->data[0], bounds));
     1026        mosaicImage = psImageSubset(hdu->images->data[0], bounds);
    10271027        if (!mosaicImage) {
    10281028            psError(PS_ERR_UNKNOWN, false, "Unable to select image pixels.\n");
     
    10301030        }
    10311031        if (hdu->masks) {
    1032             mosaicMask = psMemIncrRefCounter(psImageSubset(hdu->masks->data[0], bounds));
     1032            mosaicMask = psImageSubset(hdu->masks->data[0], bounds);
    10331033            if (!mosaicMask) {
    10341034                psError(PS_ERR_UNKNOWN, false, "Unable to select mask pixels.\n");
     
    10371037        }
    10381038        if (hdu->weights) {
    1039             mosaicWeights = psMemIncrRefCounter(psImageSubset(hdu->weights->data[0], bounds));
     1039            mosaicWeights = psImageSubset(hdu->weights->data[0], bounds);
    10401040            if (!mosaicWeights) {
    10411041                psError(PS_ERR_UNKNOWN, false, "Unable to select weight pixels.\n");
     
    12561256        psTrace("psModules.camera", 1, "Case 1 mosaicking: simple cut-out.\n");
    12571257        pmHDU *hdu = source->hdu;         // The HDU that has the pixels
    1258         mosaicImage = psMemIncrRefCounter(psImageSubset(hdu->images->data[0], *fpaRegion));
     1258        mosaicImage = psImageSubset(hdu->images->data[0], *fpaRegion);
    12591259        if (hdu->masks) {
    1260             mosaicMask = psMemIncrRefCounter(psImageSubset(hdu->masks->data[0], *fpaRegion));
     1260            mosaicMask = psImageSubset(hdu->masks->data[0], *fpaRegion);
    12611261        }
    12621262        if (hdu->weights) {
    1263             mosaicWeights = psMemIncrRefCounter(psImageSubset(hdu->weights->data[0], *fpaRegion));
     1263            mosaicWeights = psImageSubset(hdu->weights->data[0], *fpaRegion);
    12641264        }
    12651265    } else {
Note: See TracChangeset for help on using the changeset viewer.