]> git.donarmstrong.com Git - mothur.git/blobdiff - readtreecommand.cpp
added sort to heatmap to put shared otus at the top and updated some error checking
[mothur.git] / readtreecommand.cpp
index 405de84daef015d5edb37110ab35f0a2c98bbbb3..6af28ad7788a351e1a320aaf433c800c2c529f1b 100644 (file)
@@ -18,6 +18,9 @@ ReadTreeCommand::ReadTreeCommand(){
                //read in group map info.
                treeMap = new TreeMap(globaldata->getGroupFile());
                treeMap->readMap();
+               
+               //memory leak prevention
+               //if (globaldata->gTreemap != NULL) { delete globaldata->gTreemap;  }
                globaldata->gTreemap = treeMap;
 
                read = new ReadNewickTree(filename);