Changeset 41524
- Timestamp:
- Apr 2, 2021, 2:46:34 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPACopy.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPACopy.c
r35561 r41524 504 504 505 505 // Update the astrometric parameters 506 target->toFPA = psMemIncrRefCounter (source->toFPA); 507 target->fromFPA = psMemIncrRefCounter (source->fromFPA); 506 // free any previous versions 507 psFree (target->toFPA); target->toFPA = psMemIncrRefCounter (source->toFPA); 508 psFree (target->fromFPA); target->fromFPA = psMemIncrRefCounter (source->fromFPA); 508 509 509 510 // Update the parent fpa astrometry parameters, or check that they match 510 511 pmFPA *targetFPA = target->parent; 511 512 pmFPA *sourceFPA = source->parent; 513 512 514 // XXX should we require that both of these exist? 513 514 515 if (targetFPA && sourceFPA) { 515 if (targetFPA->toSky) { 516 psFree(targetFPA->toSky); 517 } 518 targetFPA->toSky = psMemIncrRefCounter (sourceFPA->toSky); 519 if (targetFPA->toTPA) { 520 psFree(targetFPA->toTPA); 521 } 522 targetFPA->toTPA = psMemIncrRefCounter (sourceFPA->toTPA); 523 if (targetFPA->fromTPA) { 524 psFree(targetFPA->fromTPA); 525 } 526 targetFPA->fromTPA = psMemIncrRefCounter (sourceFPA->fromTPA); 516 psFree(targetFPA->toSky); targetFPA->toSky = psMemIncrRefCounter (sourceFPA->toSky); 517 psFree(targetFPA->toTPA); targetFPA->toTPA = psMemIncrRefCounter (sourceFPA->toTPA); 518 psFree(targetFPA->fromTPA); targetFPA->fromTPA = psMemIncrRefCounter (sourceFPA->fromTPA); 527 519 } 528 520
Note:
See TracChangeset
for help on using the changeset viewer.
