IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 15, 2012, 1:32:57 PM (14 years ago)
Author:
watersc1
Message:

Median code completes now, but is saving in the wrong output format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20120906/ppStack/src/ppStackCleanup.c

    r34623 r34666  
    2222    options->outRO = NULL;
    2323
    24     options->expRO->data_exists = false;
    25     options->expRO->parent->data_exists = false;
    26     options->expRO->parent->parent->data_exists = false;
    27     psFree(options->expRO);
    28     options->expRO = NULL;
     24    if (options->expRO) {
     25      options->expRO->data_exists = false;
     26      if (options->expRO->parent) {
     27        options->expRO->parent->data_exists = false;
     28        options->expRO->parent->parent->data_exists = false;
     29      }
     30      psFree(options->expRO);
     31      options->expRO = NULL;
     32    }
    2933
    3034    if (options->bkgRO) {
    3135      options->bkgRO->data_exists = false;
    32       options->bkgRO->parent->data_exists = false;
    33       options->bkgRO->parent->parent->data_exists = false;
     36      if (options->bkgRO->parent) {
     37        options->bkgRO->parent->data_exists = false;
     38        options->bkgRO->parent->parent->data_exists = false;
     39      }
    3440      psFree(options->bkgRO);
    3541      options->bkgRO = NULL;
Note: See TracChangeset for help on using the changeset viewer.