]> git.donarmstrong.com Git - mothur.git/blobdiff - matrixoutputcommand.cpp
fixed some bugs
[mothur.git] / matrixoutputcommand.cpp
index e848647997c1a522f6a583d2144646ac20f7ac51..4ae8e244031a5ea194724fcb4581bbd677e4bc9c 100644 (file)
@@ -170,9 +170,11 @@ void MatrixOutputCommand::help(){
 //**********************************************************************************************************************
 
 MatrixOutputCommand::~MatrixOutputCommand(){
-       delete input;
-       delete read;
-       delete validCalculator;
+       if (abort == false) {
+               delete input; globaldata->ginput = NULL;
+               delete read;
+               delete validCalculator;
+       }
 }
 
 //**********************************************************************************************************************