IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 3, 2006, 1:16:16 PM (20 years ago)
Author:
drobbin
Message:

Fixed memory leak and output errors associated with psImageSlice -> psVectorSort and p_psVectorSampleMedian.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImagePixelExtract.c

    r6806 r7055  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-04-06 22:55:18 $
     10 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-05-03 23:16:16 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    474474    if (direction == PS_CUT_X_POS || direction == PS_CUT_X_NEG) {
    475475        psVector* imgVec = psVectorAlloc(numRows, type);
     476        imgVec->n = imgVec->nalloc;
    476477        psVector* maskVec = NULL;
    477478        psMaskType* maskData = NULL;
     
    498499        if (mask != NULL) {
    499500            maskVec = psVectorAlloc(numRows, mask->type.type);
    500         }
    501         imgVec->n = imgVec->nalloc;
    502         maskVec->n = maskVec->nalloc;
     501            maskVec->n = maskVec->nalloc;
     502        }
    503503        #define PSIMAGE_CUT_VERTICAL(TYPE) \
    504504    case PS_TYPE_##TYPE: { \
Note: See TracChangeset for help on using the changeset viewer.