]> git.donarmstrong.com Git - mothur.git/blobdiff - pintail.cpp
working on removing pointers from chimera.slayer to eliminate pesky memory leaks
[mothur.git] / pintail.cpp
index b04efea9ba2c59b06dff4bf599d492dc2f9cd0e2..10f931f8230d035decdfcc282fe8de248aa0bdac 100644 (file)
@@ -249,7 +249,7 @@ int Pintail::doPrep() {
        }
 }
 //***************************************************************************************************************
-Sequence* Pintail::print(ostream& out, ostream& outAcc) {
+Sequence Pintail::print(ostream& out, ostream& outAcc) {
        try {
                
                int index = ceil(deviation);
@@ -280,7 +280,7 @@ Sequence* Pintail::print(ostream& out, ostream& outAcc) {
                for (int m = 0; m < expectedDistance.size(); m++) {  out << expectedDistance[m] << '\t';  }
                out << endl;
                
-               return NULL;
+               return *querySeq;
                
        }
        catch(exception& e) {