for(int i=0;i<displays.size();i++){
displays[i]->reset();
}
+
+ delete lookup;
+ delete rank;
+ delete ccd;
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the Collect class Function getCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the Collect class function getCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
+ errorOut(e, "Collect", "getCurve");
+ exit(1);
}
-
}
/***********************************************************************/
for(int i=0;i<displays.size();i++){
displays[i]->reset();
}
+
+ //memory cleanup
+ delete ccd;
+ for (int i = 0; i < lookup.size(); i++) {
+ delete lookup[i];
+ }
+
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the Collect class Function getSharedCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the Collect class function getSharedCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
+ errorOut(e, "Collect", "getSharedCurve");
+ exit(1);
}
-
}
/**************************************************************************************/
}
-/**************************************************************************************/
\ No newline at end of file
+/**************************************************************************************/