MantisBT - VTK
View Issue Details
0012870VTK(No Category)public2012-01-23 14:042012-01-23 14:13
Bryn Lloyd 
 
normalminorhave not tried
closedfixed 
5.8.0 
 
TBD
incorrect functionality
0012870: Debugleaks reports a leak in vtkMath::Random
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;
}

No tags attached.
png vtkMath_Random.png (4,538) 2012-01-23 14:04
https://www.vtk.org/Bug/file/9107/vtkMath_Random.png
png
Issue History
2012-01-23 14:04Bryn LloydNew Issue
2012-01-23 14:04Bryn LloydFile Added: vtkMath_Random.png
2012-01-23 14:13Bryn LloydNote Added: 0027963
2012-01-23 14:13Bryn LloydStatusbacklog => closed
2012-01-23 14:13Bryn LloydResolutionopen => fixed

Notes
(0027963)
Bryn Lloyd   
2012-01-23 14:13   
Sorry. I was incorrect in thinking there was a leak in vtkMath.