From: schaerer Date: Thu, 4 Feb 2010 15:05:36 +0000 (+0000) Subject: fix VF problem. X-Git-Tag: v1.2.0~836 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7f78d7b6b6bca61ca0aae964a6747cd769c0ba94;p=clitk.git fix VF problem. --- 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;