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