]> git.donarmstrong.com Git - mothur.git/blobdiff - readotu.cpp
fixed bug with cluster class. when we added the change for average neighbor to update...
[mothur.git] / readotu.cpp
index 1f64919825bbd8692043b4e8d16feaaf5e727e12..98a63f05cdbea47c62c9dc07d7fd8c65dec35319 100644 (file)
@@ -12,7 +12,7 @@
 /***********************************************************************/
 
 ReadOTUFile::ReadOTUFile(string pf): philFile(pf){
-       
+       m = MothurOut::getInstance();
        //openInputFile(philFile, fileHandle);
 }
 
@@ -64,10 +64,13 @@ void ReadOTUFile::read(GlobalData* globaldata){
                        //memory leak prevention
                        //if (globaldata->gSharedList != NULL) { delete globaldata->gSharedList;  }
                        globaldata->gSharedList = SharedList;
+                       delete inputSabund;
+                       delete inputRabund;
+                       delete inputList;
                }
        }
        catch(exception& e) {
-               errorOut(e, "ReadOTUFile", "read");
+               m->errorOut(e, "ReadOTUFile", "read");
                exit(1);
        }
 }