delete input;
delete read;
delete venn;
+ for (int i = 0; i < vennCalculators.size(); i++) { delete vennCalculators[i]; }
}
//**********************************************************************************************************************
cout << "Error: Too many groups chosen. You may use up to 4 groups with the venn command. I will use the first four groups in your groupfile." << endl;
for (int i = lookup.size(); i > 3; i--) { delete lookup[i]; lookup.pop_back(); }
}
-
+
//util->getSharedVectors(globaldata->Groups, lookup, order); //fills group vectors from order vector.
venn->getPic(lookup, vennCalculators);
}
-
+
+ //prevent memory leak
+ for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
+
//get next line to process
lookup = input->getSharedRAbundVectors();
count++;
venn->getPic(sabund, vennCalculators);
}
+ delete sabund;
sabund = input->getSAbundVector();
count++;
}