IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 28, 2009, 11:21:56 AM (17 years ago)
Author:
eugene
Message:

always handle psVectorStats false return status (is an error); check for NAN results and handle as possible

File:
1 edited

Legend:

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

    r21183 r23989  
    104104    }
    105105
    106     psVectorStats(stats, junkData, NULL, junkMask, 0xff);
     106    if (!psVectorStats(stats, junkData, NULL, junkMask, 0xff)) {
     107        psFree(junkMask);
     108        psFree(junkData);
     109        return false;
     110    }
    107111
    108112    psFree(junkMask);
Note: See TracChangeset for help on using the changeset viewer.