From 6d0f6422bf59d12be1808958ed8a507f953971d5 Mon Sep 17 00:00:00 2001 From: Jamie Allen Date: Fri, 2 Mar 2012 10:27:45 +0000 Subject: [PATCH] mar 2nd trying to fix memory leaks --- src/RelaxRateAnalysis.cpp | 3 ++- src/ShadowScapesAnalysis.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/RelaxRateAnalysis.cpp b/src/RelaxRateAnalysis.cpp index 8795684..9400fc7 100755 --- a/src/RelaxRateAnalysis.cpp +++ b/src/RelaxRateAnalysis.cpp @@ -410,8 +410,9 @@ void RelaxRateAnalysis::cleanup() // image1.erase();?? // image1.delete();?? - + // detel image1 ?? + image1.clear(); image2.clear(); image3.clear(); diff --git a/src/ShadowScapesAnalysis.cpp b/src/ShadowScapesAnalysis.cpp index 0760a02..34513d4 100755 --- a/src/ShadowScapesAnalysis.cpp +++ b/src/ShadowScapesAnalysis.cpp @@ -56,6 +56,7 @@ void ShadowScapesAnalysis::setup(int camWidth, int camHeight) image3.clear(); image4.clear(); image5.clear(); + // images use for drawing the synthesized files to the screen /// image1.setUseTexture(false); // the non texture image that is needed to first load the image