]> git.donarmstrong.com Git - mothur.git/blobdiff - heatmapcommand.cpp
fixed some bugs
[mothur.git] / heatmapcommand.cpp
index d4e893b27edbda150ea961ddc3e6484d268a78c8..7a729c68b1fa1574d3f99d04f832d9e1a8c9aecf 100644 (file)
@@ -128,9 +128,10 @@ void HeatMapCommand::help(){
 //**********************************************************************************************************************
 
 HeatMapCommand::~HeatMapCommand(){
-       
-       delete read;
-       delete heatmap;
+       if (abort == false) {
+               delete read;
+               delete heatmap;
+       }
 }
 
 //**********************************************************************************************************************
@@ -272,11 +273,11 @@ int HeatMapCommand::execute(){
                                heatmap->getPic(lastRAbund);
                        }
                
-                       delete lastRAbund;
+                       delete lastRAbund; globaldata->rabund = NULL;
 
                }
                
-               delete input;
+               delete input; globaldata->ginput = NULL;
                return 0;
        }
        catch(exception& e) {