Changeset 32251
- Timestamp:
- Aug 31, 2011, 1:28:42 PM (15 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
fits/psFitsTableNew.c (modified) (4 diffs)
-
pslib_strict.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsTableNew.c
r32229 r32251 94 94 } 95 95 96 void breakhere()97 {98 }99 100 96 void 101 97 freeTable(psFitsTable *table) { … … 103 99 psFitsTableColumn *column = &table->columns[col]; 104 100 psFree(column->name); 101 if (column->type == PS_DATA_STRING) { 102 for (int row; row < table->numRows; row++) { 103 psFree(column->data.str); 104 } 105 } else if (column->type == PS_DATA_VECTOR) { 106 for (int row; row < table->numRows; row++) { 107 psFree(column->data.vec); 108 } 109 } 105 110 // all of the members in the data union are pointers so just pick S32 106 111 psFree(column->data.S32); … … 192 197 NATIVETYPE *values = (NATIVETYPE *) psAlloc(sizeof(NATIVETYPE) * table->numRows); \ 193 198 int anynul = 0; \ 194 breakhere(); \195 199 fits_read_col(fits->fd, FITSTYPE, col, 1, \ 196 200 1, numRows, NULL, values, &anynul, &status); \ … … 200 204 psTrace("psLib.fits",5,"Column #%i, '%s', is type %i, repeat %li\n", \ 201 205 col, name, typecode, repeat); \ 206 psFree(values); \ 202 207 } else { \ 203 208 column->elementSize = repeat; \ -
trunk/psLib/src/pslib_strict.h
r27303 r32251 41 41 #include "psFitsImage.h" 42 42 #include "psFitsTable.h" 43 #include "psFitsTableNew.h" 43 44 #include "psFitsFloat.h" 44 45 #include "psFitsFloatFile.h"
Note:
See TracChangeset
for help on using the changeset viewer.
