]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedjest.cpp
fixed a bug in calculating the # of ambig bases
[mothur.git] / sharedjest.cpp
index 3e370463aba858c2c3a824f4c38e055b800b1fd7..1ca64b438036d40e2e75e70cde735f8637a53c6b 100644 (file)
@@ -3,7 +3,7 @@
  *  Dotur
  *
  *  Created by Sarah Westcott on 1/8/09.
- *  Copyright 2009 Schloss Lab Umass Amherst. All rights reserved.
+ *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
  *
  */
  
@@ -42,7 +42,13 @@ EstOutput Jest::getValues(vector<SharedRAbundVector*> shared) {
                data[0] = S12[0] / (float)(S1[0] + S2[0] - S12[0]);
                
                if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }
-                
+               
+               delete sharedChao;
+               delete chaoS1;
+               delete chaoS2;
+               delete chaoS1Sabund;
+               delete chaoS2Sabund;
+               
                return data;
        }
        catch(exception& e) {