//**********************************************************************************************************************
SummaryCommand::~SummaryCommand(){
- delete sabund;
- delete input;
- delete read;
- delete validCalculator;
+ if (abort == false) {
+ delete input; globaldata->ginput = NULL;
+ delete read;
+ delete validCalculator;
+ globaldata->sabund = NULL;
+ }
}
//**********************************************************************************************************************
outputFileHandle << endl;
}
- if (count != 1) { delete lastSAbund; }
+ if (count != 1) { delete lastSAbund; }
lastSAbund = sabund;
sabund = input->getSAbundVector();
outputFileHandle << endl;
}
+ outputFileHandle.close();
+
delete lastSAbund;
return 0;
}