Changeset 30263 for trunk/magic/remove/src/streaksio.c
- Timestamp:
- Jan 12, 2011, 4:54:59 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksio.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksio.c
r29392 r30263 121 121 sf->transparentStreaks = psMetadataLookupF64(&status, config->arguments, "TRANSPARENT_STREAKS"); 122 122 123 sf->stats = psMetadataAlloc();124 psString statsFileName= psMetadataLookupStr(&status, config->arguments, "STATS");125 if (statsFileName) {126 sf->statsFile = fopen(statsFileName, "w");127 if (!sf->statsFile) {128 psError(PS_ERR_IO, true, "failed to open stats file %s", statsFileName);129 streaksExit("", PS_EXIT_CONFIG_ERROR);130 }131 }132 133 123 return sf; 134 124 } … … 138 128 { 139 129 freeImages(sf); 130 psFree(sf->stats); 140 131 psFree(sf->diffedPixels); 141 132 psFree(sf->tiles); … … 861 852 streaksExit("", PS_EXIT_DATA_ERROR); 862 853 } 854 sfile->fits = NULL; 863 855 psFree(sfile->header); 864 856 sfile->header = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
