View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001558VTK(No Category)public2005-02-01 06:252011-01-13 17:00
ReporterHideaki Hiraki 
Assigned ToAmy Squillacote 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001558: potential memory leak in vtkImageReslice
DescriptionThe destructor of vtkImageReslice should decrease the reference count of its InformationInput.

$ vtk
% vtkImageReslice reslice
reslice
% vtkImageData data
data
% data GetReferenceCount
1
% reslice SetInformationInput data
% data GetReferenceCount
2
% reslice Delete
% data GetReferenceCount
2

The last result should be 1.
A fix is:

//----------------------------------------------------------------------------
 vtkImageReslice::~vtkImageReslice()
 {
+ this->SetInformationInput(NULL);
   this->SetResliceTransform(NULL);
   this->SetResliceAxes(NULL);
   if (this->IndexMatrix)
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0002041)
Amy Squillacote (reporter)
2005-02-04 12:01

This has been fixed in the main CVS tree. (See revision 1.57 or vtkImageReslice.cxx.)

 Issue History
Date Modified Username Field Change
2010-11-29 17:59 Amy Squillacote Source_changeset_attached => VTK master adb80f74
2011-01-13 17:00 Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00 Source_changeset_attached => VTK master 020ef709
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team