IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5519 for trunk/psLib/src/fits


Ignore:
Timestamp:
Nov 15, 2005, 12:20:17 PM (20 years ago)
Author:
desonia
Message:

modifications due to psMetadataLookupPtr now incrementing the reference count.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsTable.c

    r5511 r5519  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-11-14 22:18:30 $
     9 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-11-15 22:20:13 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    699699    }
    700700
    701     char* extname = NULL;
     701    psString extname = NULL;
    702702    if (header != NULL) {
    703         extname = psMetadataLookupPtr(NULL, header, "EXTNAME");
     703        extname = psMetadataLookupStr(NULL, header, "EXTNAME");
    704704        if ( extname == NULL) {
    705             extname = psMetadataLookupPtr(NULL, header, "HDUNAME");
     705            extname = psMetadataLookupStr(NULL, header, "HDUNAME");
    706706        }
    707707    }
     
    719719    psFree(columnNames);
    720720    psFree(columnTypes);
     721    psFree(extname);
    721722
    722723    // fill in the table elements with data
     
    747748            psArray* colArray = psArrayAlloc(table->n);
    748749            for (row = 0; row < table->n; row++) {
    749                 colArray->data[row] = psMemIncrRefCounter(
    750                                           psMetadataLookupStr(NULL,
    751                                                               table->data[row],
    752                                                               item->name));
     750                colArray->data[row] =psMetadataLookupStr(NULL,
     751                                     table->data[row],
     752                                     item->name);
    753753            }
    754754            fits_write_col_str(fits->fd,
Note: See TracChangeset for help on using the changeset viewer.