From 7f78d7b6b6bca61ca0aae964a6747cd769c0ba94 Mon Sep 17 00:00:00 2001 From: schaerer Date: Thu, 4 Feb 2010 15:05:36 +0000 Subject: [PATCH] fix VF problem. --- vv/vvSlicer.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index d9f0d13..dfaaccd 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -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; -- 2.47.1