IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2007, 9:52:51 AM (19 years ago)
Author:
Paul Price
Message:

Protecting pmReadoutFreeData from readout=NULL. Changing assertions which can never be caught into checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPA.c

    r14201 r14631  
    162162void pmReadoutFreeData (pmReadout *readout)
    163163{
     164    if (!readout) {
     165        return;
     166    }
    164167    psFree(readout->image);
    165168    psFree(readout->mask);
     
    177180void pmCellFreeData(pmCell *cell)
    178181{
    179     PS_ASSERT_PTR_NON_NULL(cell,);
     182    if (!cell) {
     183        return;
     184    }
    180185
    181186    for (int i = 0; i < cell->readouts->n; i++) {
     
    197202void pmChipFreeData(pmChip *chip)
    198203{
    199     PS_ASSERT_PTR_NON_NULL(chip,);
     204    if (!chip) {
     205        return;
     206    }
    200207
    201208    for (int i = 0; i < chip->cells->n; i++) {
     
    217224void pmFPAFreeData(pmFPA *fpa)
    218225{
    219     PS_ASSERT_PTR_NON_NULL(fpa,);
     226    if (!fpa) {
     227        return;
     228    }
    220229
    221230    for (int i = 0; i < fpa->chips->n; i++) {
Note: See TracChangeset for help on using the changeset viewer.