From: srit Date: Mon, 30 Aug 2010 13:42:52 +0000 (+0000) Subject: Removed memory leak X-Git-Tag: v1.2.0~422 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=13ea7d94cf17a464042e1008a61f6712180fc10c;p=clitk.git Removed memory leak --- 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);