Changeset 6427 for trunk/psphot/src/psphotChoosePSF.c
- Timestamp:
- Feb 14, 2006, 6:33:17 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotChoosePSF.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotChoosePSF.c
r6379 r6427 3 3 // 2006.02.07 : no leaks! 4 4 // try PSF models and select best option 5 pmPSF *psphotChoosePSF (psMetadata *config, psArray *sources , psStats *skystats) {5 pmPSF *psphotChoosePSF (psMetadata *config, psArray *sources) { 6 6 7 7 bool status; … … 52 52 psListIterator *iter = psListIteratorAlloc (list, PS_LIST_HEAD, FALSE); 53 53 for (int i = 0; i < models->n; i++) { 54 // XXX psListGetAndIncrement does not increment ref counter!?55 // XXX if it did, i should free 'item' below56 54 psMetadataItem *item = psListGetAndIncrement (iter); 57 55 modelName = item->data.V; 58 56 models->data[i] = pmPSFtryModel (stars, modelName, RADIUS); 59 // psFree (item);60 57 } 61 58 psFree (iter);
Note:
See TracChangeset
for help on using the changeset viewer.
