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/test/image/tst_psImageStats00.c

    r1041 r1073  
    9696                   myHist->nums->data.S32[i]);
    9797        }
    98         psHistogramFree(myHist);
     98        psFree(myHist);
    9999
    100100        psMemCheckCorruption(1);
     
    133133                                "psImageStats functions",
    134134                                "Deallocate the psHistogram/psImage structure.");
    135         psHistogramFree(myHist);
    136         psImageFree(tmpImage);
    137         psImageFree(tmpMask);
     135        psFree(myHist);
     136        psFree(tmpImage);
     137        psFree(tmpMask);
    138138
    139139        psMemCheckCorruption(1);
     
    167167
    168168    psMemCheckCorruption(1);
    169     psHistogramFree(myHist);
    170     psImageFree(tmpImage);
     169    psFree(myHist);
     170    psFree(tmpImage);
    171171    psMemCheckCorruption(1);
    172172    memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
Note: See TracChangeset for help on using the changeset viewer.