]> Creatis software - clitk.git/commitdiff
fix VF problem.
authorschaerer <schaerer>
Thu, 4 Feb 2010 15:05:36 +0000 (15:05 +0000)
committerschaerer <schaerer>
Thu, 4 Feb 2010 15:05:36 +0000 (15:05 +0000)
vv/vvSlicer.cxx

index d9f0d137748f35d836b0038ff4187841ca374f4c..dfaaccdc97a6485842fe191ddbea43027a17c806 100644 (file)
@@ -406,10 +406,12 @@ void vvSlicer::SetLandmarks(vvLandmarks* landmarks)
     }
 }
 
+//FIXME: this function leaks memory, we should fix it someday :)
 void vvSlicer::RemoveActor(const std::string& actor_type, int overlay_index)
 {
     if (actor_type == "vector")
     {
+        Renderer->RemoveActor(mVFActor);
         mGlyphFilter=NULL;
         mVF = NULL;
         mArrow = NULL;