IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2006, 10:15:47 AM (20 years ago)
Author:
magnier
Message:

fixed a memory leak, restrict region to image in growth curve

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmPSF.c

    r9897 r9923  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-11-07 22:55:40 $
     8 *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-11-09 20:15:47 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    255255    va_end(ap);
    256256
     257    psFree (psfTrend);
    257258    return psf;
    258259}
     
    401402    // generate working image for this source
    402403    psRegion region = {xc - dx, xc + dx, yc - dy, yc + dy};
     404
     405    // force region to stop at dimensions of image
     406    region = psRegionForImage (readout->image, region);
     407
    403408    psImage *view = psImageSubset (readout->image, region);
    404409    psImage *image = psImageCopy (NULL, view, PS_TYPE_F32);
Note: See TracChangeset for help on using the changeset viewer.