]> git.donarmstrong.com Git - mothur.git/blobdiff - parselistcommand.cpp
fixed some bugs
[mothur.git] / parselistcommand.cpp
index 5de3b72daa63b962ff9be84b5665e7230fb2470b..c12bd47aa0152bf266d0e3445f0f42b67b6bed39 100644 (file)
@@ -15,7 +15,8 @@ ParseListCommand::ParseListCommand(){
                globaldata = GlobalData::getInstance();
                
                //read in group map info.
-               groupMap = globaldata->gGroupmap;
+               groupMap = new GroupMap(globaldata->getGroupFile());
+               groupMap->readMap();
 
                //fill filehandles with neccessary ofstreams
                int i;
@@ -183,9 +184,11 @@ int ParseListCommand::execute(){
 //**********************************************************************************************************************
 
 ParseListCommand::~ParseListCommand(){
-       delete list;
-       delete input;
-       delete read;    
+       
+               globaldata->gSharedList = NULL;
+               delete input;  globaldata->ginput = NULL;
+               delete read;
+       
 }
 //**********************************************************************************************************************
 void ParseListCommand::process(SharedListVector* thisList) {