X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=collectsharedcommand.cpp;h=697bc5340d66d54f9bdfcd8505bd8927a7e0ac57;hp=ae2c52e7c03a9c713930bd77edc22bc402a1b51f;hb=e911fa88572a16ef40e0b51fb132ab6e02370797;hpb=1754e8fdda8c41afba854df004b31f5e2d25fb75 diff --git a/collectsharedcommand.cpp b/collectsharedcommand.cpp index ae2c52e..697bc53 100644 --- a/collectsharedcommand.cpp +++ b/collectsharedcommand.cpp @@ -296,11 +296,11 @@ int CollectSharedCommand::execute(){ //run last line if you need to if (needToRun == true) { - delete order; + if (order != NULL) { delete order; } order = input->getSharedOrderVector(lastLabel); cCurve = new Collect(order, cDisplays); - cCurve->getCurve(freq); + cCurve->getSharedCurve(freq); delete cCurve; mothurOut(order->getLabel()); mothurOutEndLine();