IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 23, 2004, 1:00:17 PM (22 years ago)
Author:
desonia
Message:

Changed the means of deallocation of memory. ps_Alloc now registers an optional free function to handle any additional processing of a memory object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImageStats.c

    r1072 r1073  
    6767
    6868        stats = psVectorStats(stats, junkData, junkMask, maskVal);
    69         psVectorFree(junkMask);
     69        psFree(junkMask);
    7070    } else {
    7171        stats = psVectorStats(stats, junkData, NULL, 0);
    7272    }
    73     psVectorFree(junkData);
     73    psFree(junkData);
    7474    return(stats);
    7575}
     
    129129        }
    130130        out = psHistogramVector(out, junkData, junkMask, maskVal);
    131         psVectorFree(junkMask);
     131        psFree(junkMask);
    132132    } else {
    133133        out = psHistogramVector(out, junkData, NULL, 0);
    134134    }
    135     psVectorFree(junkData);
     135    psFree(junkData);
    136136
    137137    return(out);
     
    339339    // Free the Chebyshev polynomials that were created in this routine.
    340340    for (i=0;i<maxChebyPoly;i++) {
    341         psPolynomial1DFree(chebPolys[i]);
     341        psFree(chebPolys[i]);
    342342    }
    343343    psFree(chebPolys);
     
    413413    // Free the Chebyshev polynomials that were created in this routine.
    414414    for (i=0;i<maxChebyPoly;i++) {
    415         psPolynomial1DFree(chebPolys[i]);
     415        psFree(chebPolys[i]);
    416416    }
    417417    psFree(chebPolys);
Note: See TracChangeset for help on using the changeset viewer.