X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bayesian.cpp;h=cf70010e76a6b9cba77b8ade2fcd7d18713391d3;hb=af9291809910b6ddf617490ed5c16254b77b449f;hp=49be4af57ff66f46ac04912535d7918518cc75d2;hpb=90708fe9701e3827e477c82fb3652539c3bf2a0d;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");