|
From: Gustavo P. B. <gb...@us...> - 2005-06-30 02:37:59
|
Update of /cvsroot/kimageprocess/kimageprocess/src/libkimageprocess In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16403/src/libkimageprocess Modified Files: ktcalculation.cpp ktfeature.cpp Log Message: Fixed errors reported by Valgrind's memcheck. I still want to do a corecheck Index: ktfeature.cpp =================================================================== RCS file: /cvsroot/kimageprocess/kimageprocess/src/libkimageprocess/ktfeature.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- ktfeature.cpp 23 Jun 2005 18:33:50 -0000 1.7 +++ ktfeature.cpp 30 Jun 2005 02:37:47 -0000 1.8 @@ -29,6 +29,7 @@ //all features enabled by default m_enabled = true; m_method = KTMethodManager::self()->getMethod(type); + m_img = 0; } KTFeature::~KTFeature() Index: ktcalculation.cpp =================================================================== RCS file: /cvsroot/kimageprocess/kimageprocess/src/libkimageprocess/ktcalculation.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- ktcalculation.cpp 29 Jun 2005 03:03:00 -0000 1.7 +++ ktcalculation.cpp 30 Jun 2005 02:37:47 -0000 1.8 @@ -75,6 +75,7 @@ m_data.clear(); m_min.resize(m_inputs, 0); m_max.resize(m_inputs, 0); + m_first = true; int imgClass = 1; KTImage *it; @@ -116,6 +117,7 @@ m_data.clear(); m_min.resize(m_inputs, 0); m_max.resize(m_inputs, 0); + m_first = true; KTImage *img = KTImageManager::self()->testingImage(); |