X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=treegroupscommand.cpp;h=88b1b46997a4e52d215bf2f5c2b67a75bdf300d3;hp=0f106c493d1d55f7e742ed1195e1557f435d6e49;hb=02909d6cae9963ba00dc746969a370fa8ca934fc;hpb=e7729bb337cfefcaba24549092cc89b44002af39 diff --git a/treegroupscommand.cpp b/treegroupscommand.cpp index 0f106c4..88b1b46 100644 --- a/treegroupscommand.cpp +++ b/treegroupscommand.cpp @@ -205,11 +205,13 @@ void TreeGroupCommand::help(){ //********************************************************************************************************************** TreeGroupCommand::~TreeGroupCommand(){ - delete input; - if (format == "sharedfile") {delete read;} - else { delete readMatrix; delete matrix; delete list; } - delete tmap; - delete validCalculator; + if (abort == false) { + + if (format == "sharedfile") { delete read; delete input; globaldata->ginput = NULL;} + else { delete readMatrix; delete matrix; delete list; } + delete tmap; + delete validCalculator; + } }