Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit d2a95dc6 authored by saubatn's avatar saubatn
Browse files

FIXED Memory leaks.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@2027 ec899d31-69d1-42ba-9299-647d76f65fb3
parent bcc96a65
......@@ -115,7 +115,7 @@ DicomComponent::DicomComponent(DicomSerie* dicomSerie) throw(AbortException) : I
double *spacing = imageReader->GetDataSpacing();
// Update Z Spacing using a VTK pipeline
vtkImageChangeInformation *imageInfoChanger = vtkImageChangeInformation::New();
vtkSmartPointer<vtkImageChangeInformation> imageInfoChanger = vtkImageChangeInformation::New();
imageInfoChanger->SetInput(rawData); //translatedData);
/// DEBUG
......@@ -153,7 +153,10 @@ DicomComponent::DicomComponent(DicomSerie* dicomSerie) throw(AbortException) : I
// --------------- destructor -------------------
DicomComponent::~DicomComponent() {
if(serie)
delete serie;
if(imageReader)
imageReader->Delete();
}
// --------------- updateLUT -------------------
......
......@@ -88,6 +88,8 @@ Component * DicomComponentExtension::open(const QString & path) throw (AbortExce
lastOpenedComponent = new DicomComponent(serie);
break;
}
else
delete serie;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment