Changeset 34800 for trunk/ppStack/src/ppStackCleanup.c
- Timestamp:
- Dec 11, 2012, 2:04:31 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStack/src/ppStackCleanup.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/ppStack/src/ppStackCleanup.c
r30874 r34800 22 22 options->outRO = NULL; 23 23 24 options->expRO->data_exists = false; 25 options->expRO->parent->data_exists = false; 26 options->expRO->parent->parent->data_exists = false; 27 psFree(options->expRO); 28 options->expRO = NULL; 24 if (options->expRO) { 25 options->expRO->data_exists = false; 26 if (options->expRO->parent) { 27 options->expRO->parent->data_exists = false; 28 options->expRO->parent->parent->data_exists = false; 29 } 30 psFree(options->expRO); 31 options->expRO = NULL; 32 } 29 33 34 if (options->bkgRO) { 35 options->bkgRO->data_exists = false; 36 if (options->bkgRO->parent) { 37 options->bkgRO->parent->data_exists = false; 38 options->bkgRO->parent->parent->data_exists = false; 39 } 40 psFree(options->bkgRO); 41 options->bkgRO = NULL; 42 } 43 30 44 for (int i = 0; i < options->num; i++) { 31 45 pmCellFreeData(options->cells->data[i]); … … 62 76 63 77 bool ppStackCleanup (pmConfig *config, ppStackOptions *options) { 64 65 78 psExit exitValue = ppStackExitCode(PS_EXIT_SUCCESS); // Exit code 66 79 67 80 // Ensure everything closes 68 81 if (config) { … … 72 85 ppStackFileActivation(config, PPSTACK_FILES_UNCONV, true); 73 86 ppStackFileActivation(config, PPSTACK_FILES_PHOT, true); 87 ppStackFileActivation(config, PPSTACK_FILES_MEDIAN_IN, true); 88 ppStackFileActivation(config, PPSTACK_FILES_MEDIAN_OUT, true); 74 89 if (!ppStackFilesIterateUp(config)) { 75 90 psError(psErrorCodeLast(), false, "Unable to close files.");
Note:
See TracChangeset
for help on using the changeset viewer.
