X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=globaldata.cpp;h=155aad57e1a6bcce20cbce2e0c8d92c776ead103;hb=ac1da2a793271cb67f2a2155c5558e1fabdd6aba;hp=cdf819baa6badc6e89c65bb6c6428e01be41d40d;hpb=fe346922fe0af5b1a025beacb211078d37598fd4;p=mothur.git diff --git a/globaldata.cpp b/globaldata.cpp index cdf819b..155aad5 100644 --- a/globaldata.cpp +++ b/globaldata.cpp @@ -93,18 +93,30 @@ void GlobalData::newRead() { //free memory if (gGroupmap != NULL) { delete gGroupmap; gGroupmap = NULL; } + if (gListVector != NULL) { delete gListVector; gListVector = NULL;} + if (gSparseMatrix != NULL) { delete gSparseMatrix; gSparseMatrix = NULL; } + if (ginput != NULL) { delete ginput; ginput = NULL;} + if (gorder != NULL) { delete gorder; gorder = NULL; } + if (glist != NULL) { delete glist; glist = NULL;} + if (gSharedList != NULL) { delete gSharedList; gSharedList = NULL; } + if (sabund != NULL) { delete sabund; sabund = NULL;} + if (rabund != NULL) { delete rabund; rabund = NULL; } + if (gMatrix != NULL) { delete gMatrix; gMatrix = NULL;} + if (gTreemap != NULL) { delete gTreemap; gTreemap = NULL; } + if (gSequenceDB != NULL) { delete gSequenceDB; gSequenceDB = NULL;} + gTree.clear(); Treenames.clear(); labels.clear(); lines.clear(); Groups.clear();