]> git.donarmstrong.com Git - mothur.git/blobdiff - heatmap.cpp
fixed bug in heatmap
[mothur.git] / heatmap.cpp
index 0b1a80e6e9dca67a794653ce171d1b4011287b4a..90b11159f4ea8016d397f72a045c1e2031e48476 100644 (file)
@@ -218,6 +218,9 @@ void HeatMap::sortSharedVectors(vector<SharedRAbundVector*>& lookup){
                }
                
                //clear out lookup to create sorted lookup
+               for (int j = 0; j < lookup.size(); j++) {
+                       delete lookup[j];
+               }
                lookup.clear();
                
                //create and initialize lookup to empty vectors