Debugleaks reports a leak in vtkMath::Random
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Debugleaks reports a leak in vtkMath.
I used the function Random, and at the end of my program executation there is still a vtkBoxMuellerRandomSequence object around.
See the error in the screenshot.
My environment is: MSVC 2010, Windows 7, x64, vtk 5.8.0
This can be reproduced by following simple test:
int main(int argc, char** argv) { { vtkMath::Random(-1.0,1.0); }
if ( vtkDebugLeaks::PrintCurrentLeaks() == 0) return EXIT_SUCCESS; else return EXIT_FAILURE; }