]> git.donarmstrong.com Git - mothur.git/blobdiff - readotu.cpp
version working on mac with .tellg changed to unget for windows
[mothur.git] / readotu.cpp
index 286a2be271a4a7bb2225a71c7081b1a5c8eb4571..a99f343c83e35cd42724ddef6b32d26f4d0c88a6 100644 (file)
@@ -13,7 +13,7 @@
 
 ReadOTUFile::ReadOTUFile(string pf): philFile(pf){
        
-       openInputFile(philFile, fileHandle);
+       //openInputFile(philFile, fileHandle);
 }
 
 /***********************************************************************/
@@ -44,12 +44,15 @@ void ReadOTUFile::read(GlobalData* globaldata){
                        sabund = inputSabund->getSAbundVector(); 
                        //if (globaldata->sabund != NULL) { delete globaldata->sabund;  }
                        globaldata->sabund = sabund; //saving to be used by summary command.
+                       delete inputSabund;
                        rabund = inputRabund->getRAbundVector(); 
                        //if (globaldata->rabund != NULL) { delete globaldata->rabund;  }
                        globaldata->rabund = rabund; //saving to be used by heatmap.bin command.
+                       delete inputRabund;
                        list = inputList->getListVector();
                        //if (globaldata->gListVector != NULL) { delete globaldata->gListVector;  }
                        globaldata->gListVector = list;
+                       delete inputList;
 
                }else if (globaldata->getFormat() == "shared") {
                        SharedList = input->getSharedListVector(); //you are reading for collect.shared, rarefaction.shared, summary.shared, parselist command, or shared commands.