Changeset 6145 for branches/eam_rel9_p0/psModules/src/astrom/pmChipMosaic.c
- Timestamp:
- Jan 21, 2006, 5:23:32 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_rel9_p0/psModules/src/astrom/pmChipMosaic.c
r6124 r6145 5 5 #include "pmFPA.h" 6 6 #include "pmChipMosaic.h" 7 8 #define MEM_LEAKS 1 7 9 8 10 // Compare a value with a maximum and minimum … … 309 311 310 312 // Chop off all the component cells, and put in a new one 313 #ifndef MEM_LEAKS 314 pmChipFreeCells(chip); 315 #else 316 311 317 chip->cells = psArrayAlloc(0); 318 #endif 319 312 320 pmCell *cell = pmCellAlloc(chip, NULL, __func__); // New cell 313 321 cellConcepts(cell, cells, xBinChip, yBinChip); 314 psFree(cells);315 322 316 323 #if 1 … … 330 337 // Want the readouts to contain a subimage, but that subimage is the whole image. 331 338 // This preserves the relationship there was before, where freeing the parent frees the child. 332 readout->image = ps ImageSubset(image, entire);333 readout->weight = ps ImageSubset(weight, entire);334 readout->mask = ps ImageSubset(mask, entire);339 readout->image = psMemIncrRefCounter(psImageSubset(image, entire)); 340 readout->weight = psMemIncrRefCounter(psImageSubset(weight, entire)); 341 readout->mask = psMemIncrRefCounter(psImageSubset(mask, entire)); 335 342 psFree(readout); 336 343
Note:
See TracChangeset
for help on using the changeset viewer.
