]> git.donarmstrong.com Git - mothur.git/blobdiff - globaldata.cpp
bugs fixes while testing for 1.5 release
[mothur.git] / globaldata.cpp
index cdf819baa6badc6e89c65bb6c6428e01be41d40d..155aad57e1a6bcce20cbce2e0c8d92c776ead103 100644 (file)
@@ -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();