IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 12, 2004, 2:10:50 PM (22 years ago)
Author:
desonia
Message:

adjusted the reference count increment so that psFPA assumes ownership
of psChips, psChips assumes ownership of psCells, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astronomy/psAstrometry.c

    r2061 r2067  
    88 *  @author George Gusciora, MHPCC
    99 *
    10  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-10-12 21:10:41 $
     10 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-10-13 00:10:50 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    151151    if (chip != NULL) {
    152152        psFree(chip->cells);
    153         psFree(chip->parent);
    154153        psFree(chip->metadata);
    155154        psFree(chip->toFPA);
     
    167166        psFree(cell->toFPA);
    168167        psFree(cell->toTP);
    169         psFree(cell->parent);
    170168    }
    171169}
     
    174172{
    175173    if (readout != NULL) {
    176         psFree(readout->image);
    177174        psFree(readout->mask);
    178175        psFree(readout->objects);
     
    407404    chip->fromFPA = NULL;
    408405
    409     chip->parent = psMemIncrRefCounter(parentFPA);
     406    chip->parent = parentFPA;
    410407
    411408    p_psMemSetDeallocator(chip,(psFreeFcn)chipFree);
     
    437434    cell->toTP = NULL;
    438435
    439     cell->parent = psMemIncrRefCounter(parentChip);
     436    cell->parent = parentChip;
    440437
    441438    p_psMemSetDeallocator(cell,(psFreeFcn)cellFree);
     
    457454    *(int*)&readout->row0 = row0;
    458455
    459     readout->image = psMemIncrRefCounter((psImage*)image);
     456    readout->image = (psImage*)image;
    460457    readout->mask = NULL;
    461458    readout->objects = NULL;
Note: See TracChangeset for help on using the changeset viewer.