X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=readmatrix.cpp;h=529eef5c7cf8b70e12f30dde6b4c2b661a01207f;hb=c25c956e4a3c7ca3271d48ee6215c72b2ec80c44;hp=b2a2ffac57ef83c9449172baa62856d78deca4a2;hpb=9e07ea7484097a73e0e9ce3e379c12bfa0a4e55d;p=mothur.git diff --git a/readmatrix.cpp b/readmatrix.cpp index b2a2ffa..529eef5 100644 --- a/readmatrix.cpp +++ b/readmatrix.cpp @@ -348,20 +348,20 @@ void ReadPhilFile::read(GlobalData* globaldata){ } //memory leak prevention - if (globaldata->ginput != NULL) { delete globaldata->ginput; } + //if (globaldata->ginput != NULL) { delete globaldata->ginput; } globaldata->ginput = input; //saving to be used by collector and rarefact commands. if ((globaldata->getFormat() == "list") || (globaldata->getFormat() == "rabund") || (globaldata->getFormat() == "sabund")) {//you are reading a list, rabund or sabund file for collect, rarefaction or summary. order = input->getOrderVector(); //memory leak prevention - if (globaldata->gorder != NULL) { delete globaldata->gorder; } + //if (globaldata->gorder != NULL) { delete globaldata->gorder; } globaldata->gorder = order; //saving to be used by collect and rarefact commands. sabund = inputSabund->getSAbundVector(); globaldata->sabund = sabund; //saving to be used by summary command. }else if (globaldata->getFormat() == "shared") { SharedList = input->getSharedListVector(); //you are reading for collect.shared, rarefaction.shared, summary.shared, parselist command, or shared commands. //memory leak prevention - if (globaldata->gSharedList != NULL) { delete globaldata->gSharedList; } + //if (globaldata->gSharedList != NULL) { delete globaldata->gSharedList; } globaldata->gSharedList = SharedList; } }