Fixes of some memory leaks

This commit is contained in:
Piotr Miecielica
2013-11-19 17:35:27 +01:00
parent e69d2c1bb1
commit 923698d700
6 changed files with 18 additions and 5 deletions

View File

@@ -79,9 +79,7 @@ void CvFuzzyCurve::clear()
void CvFuzzyCurve::addPoint(double x, double y)
{
CvFuzzyPoint *point;
point = new CvFuzzyPoint(x, y);
points.push_back(*point);
points.push_back(CvFuzzyPoint(x, y));
};
double CvFuzzyCurve::calcValue(double param)