IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 22, 2006, 4:11:01 PM (20 years ago)
Author:
Paul Price
Message:

Calling psLibInit() to allow memory checking at exit; removing our own memory checking in favour of use of PS_MEMORY_CHECK feature; calling psLibFinalize instead of a whole bunch of other functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageCleanup.c

    r7639 r7647  
    33void ppImageCleanup (pmConfig *config, ppImageOptions *options) {
    44
     5    // Free memory used by ppImage
    56    psFree(options);
    67    psFree(config);
    78
    8     psTimerStop();
    9     psMemCheckCorruption (true);
    10     psTraceReset();
     9    // Free memory used by psModules
    1110    pmConceptsDone();
    1211    pmConfigDone();
    1312    pmModelGroupCleanup();
    14     fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, NULL, false), "ppImage");
    15     // fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, stdout, false), "ppImage");
     13
     14    // Free memory used by psLib
     15    psLibFinalize();
     16
    1617    return;
    1718}
Note: See TracChangeset for help on using the changeset viewer.