]> git.donarmstrong.com Git - mothur.git/blobdiff - clustercommand.cpp
fixing minor bugs
[mothur.git] / clustercommand.cpp
index 706ff6735b32d2f93c723a5f4af2d7a402b4bb75..4db95b45d00e3857513606383f05810f31a30ecd 100644 (file)
@@ -62,10 +62,10 @@ ClusterCommand::ClusterCommand(string option){
                        if (abort == false) {
                        
                                //get matrix, list and rabund for execute
-                               if(globaldata->gSparseMatrix != NULL)   {       matrix = new SparseMatrix(*globaldata->gSparseMatrix);          }
+                               if(globaldata->gSparseMatrix != NULL)   {       matrix = globaldata->gSparseMatrix;             }
                        
                                if(globaldata->gListVector != NULL){
-                                       list = new ListVector(*globaldata->gListVector);
+                                       list = globaldata->gListVector;
                                        rabund = new RAbundVector(list->getRAbundVector());
                                }
                                
@@ -121,8 +121,6 @@ void ClusterCommand::help(){
 
 ClusterCommand::~ClusterCommand(){
        delete cluster;
-       delete matrix;
-       delete list;
        delete rabund;
 }