Changeset 6379 for trunk/psphot/src/psphotParseCamera.c
- Timestamp:
- Feb 7, 2006, 8:52:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotParseCamera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotParseCamera.c
r6311 r6379 6 6 if (ITEM == NULL) { \ 7 7 psMetadataAdd##TYPE (CONFIG, PS_LIST_TAIL, NAME, 0, COMMENT, VALUE); \ 8 } else { psFree (ITEM); }}8 } } 9 9 10 // 2006.02.07 : no leaks! 10 11 ppFile *psphotParseCamera (ppConfig *config) { 11 12 12 13 ppFile *input = ppFileAlloc (); 13 14 14 input->filename = psMemIncrRefCounter(psMetadataLookupStr(NULL, config->arguments, "INPUT_FILE")); 15 input->filename = psMetadataLookupStr(NULL, config->arguments, "INPUT_FILE"); 16 psMemCopy (input->filename); // keep for external use 15 17 16 18 // Open the input image … … 53 55 while ((item = psMetadataGetAndIncrement (iter)) != NULL) { 54 56 psMetadataAddItem (config->recipe, item, PS_LIST_TAIL, PS_META_REPLACE); 55 psFree (item);56 57 } 57 58 psFree (iter);
Note:
See TracChangeset
for help on using the changeset viewer.
