From 13ea7d94cf17a464042e1008a61f6712180fc10c Mon Sep 17 00:00:00 2001 From: srit Date: Mon, 30 Aug 2010 13:42:52 +0000 Subject: [PATCH] Removed memory leak --- common/vvImage.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/vvImage.cxx b/common/vvImage.cxx index 066aaad..53346a3 100644 --- a/common/vvImage.cxx +++ b/common/vvImage.cxx @@ -58,8 +58,10 @@ vvImage::~vvImage() //-------------------------------------------------------------------- void vvImage::Reset() { - for (unsigned int i = 0; i < mVtkImages.size(); i++) + for (unsigned int i = 0; i < mVtkImages.size(); i++) { mVtkImageReslice[i]->GetInput()->Delete(); + mVtkImageReslice[i]->Delete(); + } mVtkImages.resize(0); mVtkImageReslice.resize(0); -- 2.47.1