IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18347 for trunk/psModules


Ignore:
Timestamp:
Jun 27, 2008, 12:28:53 PM (18 years ago)
Author:
Paul Price
Message:

Don't blow away the kernels before we need them!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionMatch.c

    r18287 r18347  
    537537                goto MATCH_ERROR;
    538538            }
    539             psFree(kernels);
    540             kernels = NULL;
    541 
    542             // There is data in the readout now
    543             if (mode == PM_SUBTRACTION_MODE_1 || mode == PM_SUBTRACTION_MODE_DUAL) {
    544                 conv1->data_exists = true;
    545                 if (conv1->parent) {
    546                     conv1->parent->data_exists = true;
    547                     conv1->parent->parent->data_exists = true;
    548                 }
    549             }
    550             if (mode == PM_SUBTRACTION_MODE_2 || mode == PM_SUBTRACTION_MODE_DUAL) {
    551                 conv2->data_exists = true;
    552                 if (conv2->parent) {
    553                     conv2->parent->data_exists = true;
    554                     conv2->parent->parent->data_exists = true;
    555                 }
    556             }
    557 
    558539
    559540            // Set the variance factors
     
    579560                psAbort("Should never reach here.");
    580561            }
     562
     563            psFree(kernels);
     564            kernels = NULL;
     565
     566            // There is data in the readout now
     567            if (mode == PM_SUBTRACTION_MODE_1 || mode == PM_SUBTRACTION_MODE_DUAL) {
     568                conv1->data_exists = true;
     569                if (conv1->parent) {
     570                    conv1->parent->data_exists = true;
     571                    conv1->parent->parent->data_exists = true;
     572                }
     573            }
     574            if (mode == PM_SUBTRACTION_MODE_2 || mode == PM_SUBTRACTION_MODE_DUAL) {
     575                conv2->data_exists = true;
     576                if (conv2->parent) {
     577                    conv2->parent->data_exists = true;
     578                    conv2->parent->parent->data_exists = true;
     579                }
     580            }
    581581        }
    582582    }
Note: See TracChangeset for help on using the changeset viewer.