]> git.donarmstrong.com Git - mothur.git/blobdiff - collectsharedcommand.cpp
fixed some bugs
[mothur.git] / collectsharedcommand.cpp
index 6127c2d6da7717112fb2c7fdb5c82910f03f8323..86d5ffca4278cc8ce14f5ef9a1071d25cb850fab 100644 (file)
@@ -117,7 +117,7 @@ CollectSharedCommand::CollectSharedCommand(string option){
                        if (abort == false) {
                        
                                string fileNameRoot = getRootName(globaldata->inputFileName);
-//                             format = globaldata->getFormat();
+                               format = globaldata->getFormat();
                                int i;
                                
                                validCalculator = new ValidCalculators();
@@ -214,12 +214,13 @@ void CollectSharedCommand::help(){
 //**********************************************************************************************************************
 
 CollectSharedCommand::~CollectSharedCommand(){
-       delete order;
-       delete input;
-       delete cCurve;
-       delete read;
-       delete util;
-       delete validCalculator;
+       if (abort == false) {
+               delete input; globaldata->ginput = NULL;
+               delete read;
+               delete util;
+               delete validCalculator;
+               globaldata->gorder = NULL;
+       }
 }
 
 //**********************************************************************************************************************