X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clustercommand.cpp;h=4db95b45d00e3857513606383f05810f31a30ecd;hb=753dc84cf289b1d5dc0ca5b0c043640927aa951a;hp=706ff6735b32d2f93c723a5f4af2d7a402b4bb75;hpb=de2dc9fb831f569b823031d0730f5a0d739e8290;p=mothur.git diff --git a/clustercommand.cpp b/clustercommand.cpp index 706ff67..4db95b4 100644 --- a/clustercommand.cpp +++ b/clustercommand.cpp @@ -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; }