]> git.donarmstrong.com Git - mothur.git/blobdiff - shen.cpp
worked on parselist and shared commands, removing memory leaks and allowing any numbe...
[mothur.git] / shen.cpp
index 612a253dfd56ec074ab7bc305c1bf45f5b47e3c5..3d1c2778387a0beec550a0c6086b9fb06281338d 100644 (file)
--- a/shen.cpp
+++ b/shen.cpp
@@ -15,7 +15,6 @@
 EstOutput Shen::getValues(SAbundVector* rank){
 
        try {
-               globaldata = GlobalData::getInstance();
                
                data.resize(1,0);
                
@@ -28,7 +27,9 @@ EstOutput Shen::getValues(SAbundVector* rank){
                double f0 = ace[0]-rank->getNumBins();
                
                data[0] = f0 * (1 - pow(1 - f1/n/f0, m));
-
+               
+               delete calc;
+               
                return data;
        }
        catch(exception& e) {