X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bayesian.cpp;h=22eab72b60574679f61eca1f02990a3178aecd75;hb=4a2d841cb97fb02351022efe9d7068b1dc212bf9;hp=a4229c6b3d331ca5a04ee49ac2385b2965963421;hpb=5a86e9e5a5a9e061e17b3ae64fb8881f14e53b8a;p=mothur.git diff --git a/bayesian.cpp b/bayesian.cpp index a4229c6..22eab72 100644 --- a/bayesian.cpp +++ b/bayesian.cpp @@ -177,6 +177,18 @@ Classify(), kmerSize(ksize), confidenceThreshold(cutoff), iters(i) { exit(1); } } +/**************************************************************************************************/ +Bayesian::~Bayesian() { + try { + delete phyloTree; + if (database != NULL) { delete database; } + } + catch(exception& e) { + m->errorOut(e, "Bayesian", "~Bayesian"); + exit(1); + } +} + /**************************************************************************************************/ string Bayesian::getTaxonomy(Sequence* seq) { try {