]> git.donarmstrong.com Git - mothur.git/blobdiff - readdistcommand.cpp
put back no command and worked on libshuff
[mothur.git] / readdistcommand.cpp
index 9db835a2fb5ffe492b145e64213191fa8d901baa..d8c3db1c896b53c2f0d270a5c2d4df1ac9eed626 100644 (file)
@@ -21,7 +21,7 @@ ReadDistCommand::ReadDistCommand(){
                else if (format == "matrix") { 
                                groupMap = new GroupMap(globaldata->getGroupFile());
                                groupMap->readMap();
-                               if (globaldata->gGroupmap != NULL) { delete globaldata->gGroupmap;  }
+                               //if (globaldata->gGroupmap != NULL) { delete globaldata->gGroupmap;  }
                                globaldata->gGroupmap = groupMap;
                }
                
@@ -71,7 +71,7 @@ int ReadDistCommand::execute(){
                        openInputFile(filename, in);
                        matrix = new FullMatrix(in); //reads the matrix file
                        //memory leak prevention
-                       if (globaldata->gMatrix != NULL) { delete globaldata->gMatrix;  }
+                       //if (globaldata->gMatrix != NULL) { delete globaldata->gMatrix;  }
                        globaldata->gMatrix = matrix; //save matrix for coverage commands
                }else {
                        read->read(nameMap);