X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bayesian.cpp;h=cf70010e76a6b9cba77b8ade2fcd7d18713391d3;hb=4542a79d20176ff0ee830b0f9d4f4c92637439d9;hp=49be4af57ff66f46ac04912535d7918518cc75d2;hpb=159fd324dfecacb6617669246d85c787ae67f630;p=mothur.git diff --git a/bayesian.cpp b/bayesian.cpp index 49be4af..cf70010 100644 --- a/bayesian.cpp +++ b/bayesian.cpp @@ -255,9 +255,8 @@ Classify(), kmerSize(ksize), confidenceThreshold(cutoff), iters(i) { /**************************************************************************************************/ Bayesian::~Bayesian() { try { - - delete phyloTree; - if (database != NULL) { delete database; } + if (phyloTree != NULL) { delete phyloTree; } + if (database != NULL) { delete database; } } catch(exception& e) { m->errorOut(e, "Bayesian", "~Bayesian");