From 7ee559efd63c1c92f408ec13f72e15e59a87af17 Mon Sep 17 00:00:00 2001 From: Jeffrey Baumes <jeff.baumes@kitware.com> Date: Wed, 25 Mar 2009 17:31:13 -0400 Subject: [PATCH] BUG: Collection not deleted properly Fix another place where vtkCollections may not be deleted properly in the vtkGeoView. --- Geovis/vtkGeoAlignedImageRepresentation.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Geovis/vtkGeoAlignedImageRepresentation.cxx b/Geovis/vtkGeoAlignedImageRepresentation.cxx index 98cbad08bd3..a86ecc4b8ec 100644 --- a/Geovis/vtkGeoAlignedImageRepresentation.cxx +++ b/Geovis/vtkGeoAlignedImageRepresentation.cxx @@ -89,10 +89,10 @@ vtkGeoAlignedImageRepresentationFind(vtkGeoSource* source, vtkGeoImageNode* p, d } } p->SetStatus(vtkGeoTreeNode::NONE); - if (coll) - { - coll->Delete(); - } + } + if (coll) + { + coll->Delete(); } else if(p->GetStatus() == vtkGeoTreeNode::NONE) { @@ -130,7 +130,7 @@ vtkGeoAlignedImageRepresentationFind(vtkGeoSource* source, vtkGeoImageNode* p, d } vtkStandardNewMacro(vtkGeoAlignedImageRepresentation); -vtkCxxRevisionMacro(vtkGeoAlignedImageRepresentation, "1.10"); +vtkCxxRevisionMacro(vtkGeoAlignedImageRepresentation, "1.11"); vtkCxxSetObjectMacro(vtkGeoAlignedImageRepresentation, GeoSource, vtkGeoSource); //---------------------------------------------------------------------------- vtkGeoAlignedImageRepresentation::vtkGeoAlignedImageRepresentation() -- GitLab