trying to fix memory probs - blobs / images clearings
This commit is contained in:
parent
e43b78cc5a
commit
1728a128e4
@ -407,6 +407,11 @@ void RelaxRateAnalysis::save_cb(Timer& timer)
|
|||||||
|
|
||||||
void RelaxRateAnalysis::cleanup()
|
void RelaxRateAnalysis::cleanup()
|
||||||
{
|
{
|
||||||
|
// image1.erase();??
|
||||||
|
|
||||||
|
// image1.delete();??
|
||||||
|
|
||||||
|
// detel image1 ??
|
||||||
image1.clear();
|
image1.clear();
|
||||||
image2.clear();
|
image2.clear();
|
||||||
image3.clear();
|
image3.clear();
|
||||||
@ -419,9 +424,14 @@ void RelaxRateAnalysis::clearcfindervect()
|
|||||||
{
|
{
|
||||||
for(int i = 0; i < cvContourFinderVect.size(); i++) {
|
for(int i = 0; i < cvContourFinderVect.size(); i++) {
|
||||||
rfiCvContourFinder* f = cvContourFinderVect[i];
|
rfiCvContourFinder* f = cvContourFinderVect[i];
|
||||||
|
|
||||||
|
// maybe it's erase here? http://forum.openframeworks.cc/index.php/topic,3016.0.html
|
||||||
|
// cvContourFinderVect.erase(i);
|
||||||
|
|
||||||
delete f;
|
delete f;
|
||||||
}
|
}
|
||||||
cvContourFinderVect.clear();
|
cvContourFinderVect.clear();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RelaxRateAnalysis::clearcfindervectdisplay()
|
void RelaxRateAnalysis::clearcfindervectdisplay()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user