Changeset fc420f for molecuilder


Ignore:
Timestamp:
Nov 7, 2009, 9:44:11 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
341850
Parents:
4ef101
Message:

LEAKFIX: FillBoxWithMolecule() had mismatch delete/delete[]

  • boundary.cpp: FillBoxWithMolecule() - delete[] used on LCList and Tesselation instead of delete on every pointer in these arrays, fixed.
  • boundary.cpp: VolumeOfConvexEnvelope() - RESULT output has setprecision(6) again to have correct number of digits for testsuite case 14.
  • make check runs fine.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/boundary.cpp

    r4ef101 rfc420f  
    656656      volume += PyramidVolume;
    657657    }
    658   Log() << Verbose(0) << "RESULT: The summed volume is " << setprecision(8)
     658  Log() << Verbose(0) << "RESULT: The summed volume is " << setprecision(6)
    659659      << volume << " " << (IsAngstroem ? "angstrom" : "atomiclength") << "^3."
    660660      << endl;
     
    942942      }
    943943  Free(&M);
    944   delete[](LCList);
    945   delete[](TesselStruct);
     944  for (size_t i=0;i<List->ListOfMolecules.size();i++) {
     945        delete(LCList[i]);
     946        delete(TesselStruct[i]);
     947  }
    946948  Log() << Verbose(0) << "End of FillBoxWithMolecule" << endl;
    947949
Note: See TracChangeset for help on using the changeset viewer.