]> git.donarmstrong.com Git - mothur.git/blobdiff - summarysharedcommand.cpp
fixed some bugs
[mothur.git] / summarysharedcommand.cpp
index 7c1275f3a8ea9977a39e5294fa7ac330de59d857..4006b2d661ab02dc01c1e0f2c0a1fbee9f147fa7 100644 (file)
@@ -204,8 +204,10 @@ void SummarySharedCommand::help(){
 //**********************************************************************************************************************
 
 SummarySharedCommand::~SummarySharedCommand(){
-       delete read;
-       delete validCalculator;
+       if (abort == false) {
+               delete read;
+               delete validCalculator;
+       }
 }
 
 //**********************************************************************************************************************
@@ -335,7 +337,7 @@ int SummarySharedCommand::execute(){
                
                for(int i=0;i<sumCalculators.size();i++){  delete sumCalculators[i]; }
                
-               delete input;
+               delete input;  globaldata->ginput = NULL;
 
                return 0;
        }