X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedcommand.cpp;h=42601f48ead5e872d000e35c9b64852ddccd5eb8;hb=b7cce6e0a45013919e76a266533fcca4052cf157;hp=dd900643a741d576d1595c1a9c346d6b6c334361;hpb=02909d6cae9963ba00dc746969a370fa8ca934fc;p=mothur.git diff --git a/sharedcommand.cpp b/sharedcommand.cpp index dd90064..42601f4 100644 --- a/sharedcommand.cpp +++ b/sharedcommand.cpp @@ -81,6 +81,7 @@ int SharedCommand::execute(){ if (count != 1) { delete lastList; } lastList = SharedList; SharedList = input->getSharedListVector(); //get new list vector to process + count++; //if (count != 1) { for (int i = 0; i < lastLookup.size(); i++) { delete lastLookup[i]; } } //lastLookup = lookup; @@ -106,7 +107,7 @@ int SharedCommand::execute(){ printSharedData(); //prints info to the .shared file } - delete lastList; + delete lastList; globaldata->gSharedList = NULL; delete shared; out.close();