- Timestamp:
- Nov 23, 2021, 8:42:33 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/psModules/src/imcombine/pmStack.c
r41924 r41927 1555 1555 for (int i = 0; i < stackData->n; i++) { 1556 1556 pmStackData *data = stackData->data[i]; // Stack data for this input 1557 pmReadout *ro = data->readout; // Readout of interest 1558 stackReadouts->data[i] = psMemIncrRefCounter(ro); 1559 } 1560 1557 stackReadouts->data[i] = NULL; 1558 if (!data) continue; 1559 pmReadout *ro = data->readout; // Readout of interest 1560 if (!ro) continue; 1561 stackReadouts->data[i] = psMemIncrRefCounter(ro); // need to bump the counter since the free below will decrement 1562 } 1561 1563 if (!pmReadoutStackValidate(&minInputCols, &maxInputCols, &minInputRows, &maxInputRows, &xSize, &ySize, stackReadouts)) { 1562 1564 psError(psErrorCodeLast(), false, "Input stack is not valid."); … … 1590 1592 1591 1593 pmStackData *data = stackData->data[i]; // Stack data for this input 1594 if (!data) continue; 1592 1595 pmReadout *ro = data->readout; // Readout of interest 1596 if (!ro) continue; 1593 1597 1594 1598 psAssert (ro->mask, "must must exist, but does not"); … … 1718 1722 psFree(pixelVariances); 1719 1723 psFree(expTime); 1724 1720 1725 return (true); 1721 1726 }
Note:
See TracChangeset
for help on using the changeset viewer.
