[vtkusers] bugs in vtkImageReslice.cxx and vtkImageCacheFilter.cxx
hhiraki at lab.nig.ac.jp
hhiraki at lab.nig.ac.jp
Thu Feb 27 02:43:54 EST 2003
Dear developers,
This is a bug report. Two simple bugs may cause a memory leak in
vtkImageReslice (when used with InformationInput) and a segfault
in vtkImageCacheFilter (when the source was modified). My patch
shown below is for a version about 5 months ago.
Regards,
Hideaki Hiraki
--- vtkImageReslice.cxx~ Mon Sep 30 23:02:48 2002
+++ vtkImageReslice.cxx Thu Feb 27 15:28:03 2003
@@ -97,6 +97,7 @@
//----------------------------------------------------------------------------
vtkImageReslice::~vtkImageReslice()
{
+ this->SetInformationInput(NULL);
this->SetResliceTransform(NULL);
this->SetResliceAxes(NULL);
if (this->IndexMatrix)
--- vtkImageCacheFilter.cxx~ Mon Sep 30 23:02:47 2002
+++ vtkImageCacheFilter.cxx Thu Feb 27 15:17:05 2003
@@ -135,6 +135,7 @@
if (this->Data[i] && this->Times[i] < pmt)
{
this->Data[i]->Delete();
+ this->Data[i] = NULL;
this->Times[i] = 0;
}
}
More information about the vtkusers
mailing list