]> git.donarmstrong.com Git - mothur.git/blobdiff - alignment.cpp
fixed some bugs
[mothur.git] / alignment.cpp
index 95e9dc2b115888a9cd38353aeb67353c1fb71806..d64d8b20bb61d7a1718c5965a41729b0b6640255 100644 (file)
@@ -87,6 +87,23 @@ void Alignment::traceBack(){                 //      This traceback routine is used by the dynamic
        seqBend = seqB.length() - seqBend - 1;
 
 }
+/**************************************************************************************************/
+
+Alignment::~Alignment(){
+       try {
+               for (int i = 0; i < alignment.size(); i++) {
+                       for (int j = (alignment[i].size()-1); j >= 0; j--) {  alignment[i].pop_back();  }
+               }
+       }
+       catch(exception& e) {
+               cout << "Standard Error: " << e.what() << " has occurred in the Alignment class Function ~Alignment. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               exit(1);
+       }
+       catch(...) {
+               cout << "An unknown error has occurred in the Alignment class function ~Alignment. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               exit(1);
+       }
+}
 
 /**************************************************************************************************/